diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue index 454341397..65bd89553 100644 --- a/src/layout/components/Navbar.vue +++ b/src/layout/components/Navbar.vue @@ -106,6 +106,8 @@ export default { $route(val) { if (val.path === '/orderauthor/rules/manage') { this.$refs.keMenu.activeIndex = val.path; + } else if (val.path === '/design/home') { + this.$refs.keMenu.activeIndex = val.path; } } }, diff --git a/src/router/index.js b/src/router/index.js index 8b411d628..425ca9ad4 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -940,15 +940,15 @@ export const asyncRouter = [ path: '/iscs', component: Layout, meta: { - i18n: 'router.iscsSystem', - roles: [admin] + i18n: 'router.iscsSystem' }, children: [ { path:'design', component: IscsDesign, meta: { - i18n: 'router.iscsDraw' + i18n: 'router.iscsDraw', + roles: [admin] }, children: [ { @@ -962,7 +962,8 @@ export const asyncRouter = [ path: 'system', component: IscsSystem, meta: { - i18n: 'router.iscsSystem' + i18n: 'router.iscsSystem', + roles: [admin, user] }, children: [ { diff --git a/src/views/iscs/iscsSystem/config/index.vue b/src/views/iscs/iscsSystem/config/index.vue index b56ca0df5..b9adeafdb 100644 --- a/src/views/iscs/iscsSystem/config/index.vue +++ b/src/views/iscs/iscsSystem/config/index.vue @@ -1,5 +1,5 @@