修改密码

This commit is contained in:
caoqianming 2020-08-27 14:32:07 +08:00
parent c591164c5a
commit 5c6d0d30a1
2 changed files with 20 additions and 3 deletions

View File

@ -16,7 +16,7 @@
首页 首页
</el-dropdown-item> </el-dropdown-item>
</router-link> </router-link>
<router-link to="/system/user/password"> <router-link to="/changepassword">
<el-dropdown-item divided> <el-dropdown-item divided>
修改密码 修改密码
</el-dropdown-item> </el-dropdown-item>

View File

@ -268,7 +268,7 @@ export const asyncRoutes = [
component: Layout, component: Layout,
redirect: '/system/admin', redirect: '/system/admin',
name: 'System', name: 'System',
meta: { title: '系统管理', icon: 'tree' }, meta: { title: '系统管理', icon: 'tree', perms:[] },
children: [ children: [
{ {
path: 'banner', path: 'banner',
@ -288,8 +288,25 @@ export const asyncRoutes = [
component: () => import('@/views/system/role'), component: () => import('@/views/system/role'),
meta: { title: '管理员角色', icon: '', perms: ['role_manage'] } 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', name: 'ChangePassword',
component: () => import('@/views/system/changepassword'), component: () => import('@/views/system/changepassword'),
meta: { title: '修改密码', noCache: true, icon: ''}, meta: { title: '修改密码', noCache: true, icon: ''},