mirror of
https://github.com/continew-org/continew-admin-ui.git
synced 2025-09-13 14:57:14 +08:00
refactor: 优化安全设置
This commit is contained in:
@@ -40,8 +40,8 @@ export const constantRoutes: RouteRecordRaw[] = [
|
||||
children: [
|
||||
{
|
||||
path: '/home',
|
||||
component: () => import('@/views/home/index.vue'),
|
||||
name: 'Home',
|
||||
component: () => import('@/views/home/index.vue'),
|
||||
meta: { title: '首页', icon: 'dashboard', affix: true, hidden: false }
|
||||
}
|
||||
]
|
||||
@@ -56,29 +56,19 @@ export const constantRoutes: RouteRecordRaw[] = [
|
||||
path: '/setting',
|
||||
name: 'Setting',
|
||||
component: Layout,
|
||||
redirect: '/setting/profile',
|
||||
meta: { hidden: true },
|
||||
children: [
|
||||
{
|
||||
path: '/setting',
|
||||
name: 'Setting',
|
||||
component: () => import('@/views/setting/index.vue'),
|
||||
redirect: '',
|
||||
meta: { hidden: true },
|
||||
children: [
|
||||
{
|
||||
path: '/setting/profile',
|
||||
component: () => import('@/views/setting/profile/index.vue'),
|
||||
name: 'Profile',
|
||||
meta: { title: '账号管理', hidden: false, showInTabs: false }
|
||||
},
|
||||
{
|
||||
path: '/setting/security',
|
||||
component: () => import('@/views/setting/security/index.vue'),
|
||||
name: 'Security',
|
||||
meta: { title: '安全设置', hidden: false, showInTabs: false }
|
||||
}
|
||||
]
|
||||
path: '/setting/profile',
|
||||
name: 'SettingProfile',
|
||||
component: () => import('@/views/setting/profile/index.vue'),
|
||||
meta: { title: '账号管理', showInTabs: false }
|
||||
},
|
||||
{
|
||||
path: '/setting/security',
|
||||
name: 'SettingSecurity',
|
||||
component: () => import('@/views/setting/security/index.vue'),
|
||||
meta: { title: '安全设置', showInTabs: false }
|
||||
}
|
||||
]
|
||||
}
|
||||
|
Reference in New Issue
Block a user