diff --git a/test_client/src/layout/components/Navbar.vue b/test_client/src/layout/components/Navbar.vue index 7ec580c..a277ecb 100644 --- a/test_client/src/layout/components/Navbar.vue +++ b/test_client/src/layout/components/Navbar.vue @@ -16,7 +16,7 @@ 首页 - + 修改密码 diff --git a/test_client/src/router/index.js b/test_client/src/router/index.js index fad528d..e0ad7c2 100644 --- a/test_client/src/router/index.js +++ b/test_client/src/router/index.js @@ -268,7 +268,7 @@ export const asyncRoutes = [ component: Layout, redirect: '/system/admin', name: 'System', - meta: { title: '系统管理', icon: 'tree' }, + meta: { title: '系统管理', icon: 'tree', perms:[] }, children: [ { path: 'banner', @@ -288,8 +288,25 @@ export const asyncRoutes = [ component: () => import('@/views/system/role'), meta: { title: '管理员角色', icon: '', perms: ['role_manage'] } }, + // { + // path: 'user/password', + // name: 'ChangePassword', + // component: () => import('@/views/system/changepassword'), + // meta: { title: '修改密码', noCache: true, icon: ''}, + // hidden: true + // }, + ] + }, + { + path: '/changepassword', + component: Layout, + redirect: '/changepassword', + name: 'ChangePW', + meta: { title: '修改密码', icon: 'tree' }, + hidden:true, + children: [ { - path: 'user/password', + path: '', name: 'ChangePassword', component: () => import('@/views/system/changepassword'), meta: { title: '修改密码', noCache: true, icon: ''},