refactor: 优化安全设置

This commit is contained in:
2024-04-27 13:25:10 +08:00
parent 0ef78ba95a
commit 136f07c8e4
22 changed files with 303 additions and 388 deletions

View File

@@ -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 }
}
]
}