diff --git a/src/layouts/header/index.vue b/src/layouts/header/index.vue index 8ce62be..b4f8c10 100644 --- a/src/layouts/header/index.vue +++ b/src/layouts/header/index.vue @@ -5,7 +5,7 @@
- +
@@ -119,9 +119,6 @@ export default { userName && this.setInfo({ userName }) - } else { - // 如果权限里没有后台的3个菜单,则隐藏进入后台的图标。/data/list是前台数据列表,仅在前台展示 - if (this.routes.length && !this.routes.find(e => e.name !== '/data/list')) this.showSetting = false } // 如果登录了,并且非客户,才调用用户信息的接口。客户是没有用户信息的,但是能进入后台(如果有权限菜单) setTimeout(() => { @@ -145,6 +142,9 @@ export default { }) }).catch(err => { }) }, + hideSetting() { + this.showSetting = false + }, toIndex() { this.$route.path === '/index/list' ? location.reload() diff --git a/src/layouts/navbar/index.vue b/src/layouts/navbar/index.vue index 3999366..c435e1e 100644 --- a/src/layouts/navbar/index.vue +++ b/src/layouts/navbar/index.vue @@ -106,6 +106,8 @@ export default { getPer() { this.$get(`${this.api.getPermissions}?platformId=${Setting.platformId}`).then(res => { let routes = res.permissionMenu[0].children + // 如果权限里没有后台的3个菜单,则隐藏进入后台的图标。/data/list是前台数据列表,仅在前台展示 + routes.length && !routes.find(e => e.path !== '/data/list') && this.$emit('hideSetting') Setting.dynamicRoute && addRoutes(routes) this.initMenu() }).catch(err => { diff --git a/src/pages/account/login/index.vue b/src/pages/account/login/index.vue index 4917d9d..3c1371b 100644 --- a/src/pages/account/login/index.vue +++ b/src/pages/account/login/index.vue @@ -34,7 +34,7 @@
-

依据国家政策法规,需绑定手机号进行实网络实名才可登录使用本平台

+

依据国家政策法规,需绑定手机号进行网络实名才可登录使用本平台

diff --git a/src/pages/data/list/index.vue b/src/pages/data/list/index.vue index 8d1d440..2471a88 100644 --- a/src/pages/data/list/index.vue +++ b/src/pages/data/list/index.vue @@ -111,7 +111,7 @@ - +