diff --git a/.env b/.env
index 211e65b..fd624af 100644
--- a/.env
+++ b/.env
@@ -1,9 +1,12 @@
VUE_APP_PUBLIC_PATH=/
+VUE_APP_BEID=1
VUE_APP_NAME=Admin
VUE_APP_ROUTES_KEY=admin.routes
VUE_APP_PERMISSIONS_KEY=admin.permissions
VUE_APP_UID_KEY=admin.uid
VUE_APP_USER_KEY=admin.user
+VUE_APP_PROJECT_KEY=admin.project
+VUE_APP_COMPANY_KEY=admin.company
VUE_APP_SETTING_KEY=admin.setting
VUE_APP_USER_SETTINGS_KEY=admin.user.settings
VUE_APP_TBAS_KEY=admin.tabs
diff --git a/src/App.vue b/src/App.vue
index 7f93560..71659e5 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -17,8 +17,8 @@ export default {
locale: {}
}
},
+
created () {
- this.setHtmlTitle() // 设置html标题
this.setLanguage(this.lang) // 设置语言
enquireScreen(isMobile => this.setDevice(isMobile)) // 监听屏幕变化 设置设备类型
},
@@ -49,7 +49,8 @@ export default {
}
},
computed: {
- ...mapState('setting', ['layout', 'theme', 'weekMode', 'lang'])
+ ...mapState('setting', ['layout', 'theme', 'weekMode', 'lang']),
+ ...mapState('account', ['project']) ,
},
methods: {
...mapMutations('setting', ['setDevice']),
@@ -76,9 +77,10 @@ export default {
}
},
setHtmlTitle() { // 设置html标题
+ const project = this.project
const route = this.$route // 获取当前路由
const key = route.path === '/' ? 'home.name' : getI18nKey(route.matched[route.matched.length - 1].path) // 获取当前路由的i18n keywords 如果是首页则设置为home.name 否则获取当前路由的i18n keywords
- document.title = process.env.VUE_APP_NAME + ' | ' + this.$t(key) // 设置html标题 process.env.VUE_APP_NAME 为项目名称 this.$t(key) 为当前路由的i18n keywords
+ document.title = project.project_name + ' | ' + this.$t(key) // 设置html标题 process.env.VUE_APP_NAME 为项目名称 this.$t(key) 为当前路由的i18n keywords
},
popContainer() { // 弹出层容器
return document.getElementById("popContainer") // 返回弹出层容器
diff --git a/src/components/exception/ExceptionPage.vue b/src/components/exception/ExceptionPage.vue
index f9fb84a..319992a 100644
--- a/src/components/exception/ExceptionPage.vue
+++ b/src/components/exception/ExceptionPage.vue
@@ -26,10 +26,11 @@ export default {
},
methods: {
backHome() {
- if (this.homeRoute) {
- this.$router.push(this.homeRoute)
- }
- this.$emit('backHome', this.type)
+ this.$router.push('/')
+ // if (this.homeRoute) {
+ // this.$router.push(this.homeRoute)
+ // }
+ // this.$emit('backHome', this.type)
}
}
}
diff --git a/src/components/menu/Contextmenu.vue b/src/components/menu/Contextmenu.vue
index 0bec4b4..b252b8b 100644
--- a/src/components/menu/Contextmenu.vue
+++ b/src/components/menu/Contextmenu.vue
@@ -10,6 +10,7 @@
{{ item.text }}
+
diff --git a/src/components/menu/SideMenu.vue b/src/components/menu/SideMenu.vue
index 5275ca8..16c9698 100644
--- a/src/components/menu/SideMenu.vue
+++ b/src/components/menu/SideMenu.vue
@@ -1,21 +1,29 @@
-
+
-
+
+
diff --git a/src/layouts/footer/PageFooter.vue b/src/layouts/footer/PageFooter.vue
index 7c0d079..9e8029e 100644
--- a/src/layouts/footer/PageFooter.vue
+++ b/src/layouts/footer/PageFooter.vue
@@ -1,20 +1,22 @@
diff --git a/src/layouts/header/AdminHeader.vue b/src/layouts/header/AdminHeader.vue
index b78a9ad..dd1f965 100644
--- a/src/layouts/header/AdminHeader.vue
+++ b/src/layouts/header/AdminHeader.vue
@@ -1,9 +1,13 @@
-