mirror of
https://github.com/pure-admin/pure-admin-thin.git
synced 2025-11-26 20:43:37 +08:00
feat: 新增个人中心页面
This commit is contained in:
20
src/router/modules/global.ts
Normal file
20
src/router/modules/global.ts
Normal file
@@ -0,0 +1,20 @@
|
||||
export default {
|
||||
path: "/global",
|
||||
redirect: "/global/user/profile",
|
||||
meta: {
|
||||
icon: "checkboxCircleLine",
|
||||
title: "首页",
|
||||
rank: 0,
|
||||
showLink: false
|
||||
},
|
||||
children: [
|
||||
{
|
||||
path: "/global/user/profile",
|
||||
name: "Success",
|
||||
component: () => import("@/views/system/user/profile/index.vue"),
|
||||
meta: {
|
||||
title: "个人中心"
|
||||
}
|
||||
}
|
||||
]
|
||||
} as RouteConfigsTable;
|
||||
@@ -26,5 +26,21 @@ export default [
|
||||
component: () => import("@/layout/redirect.vue")
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
path: "/system/user/profile",
|
||||
component: Layout,
|
||||
meta: {
|
||||
title: "个人中心",
|
||||
showLink: false,
|
||||
rank: 102
|
||||
},
|
||||
children: [
|
||||
{
|
||||
path: "/",
|
||||
name: "Redirect",
|
||||
component: () => import("@/views/system/user/profile/index.vue")
|
||||
}
|
||||
]
|
||||
}
|
||||
] as Array<RouteConfigsTable>;
|
||||
|
||||
Reference in New Issue
Block a user