mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-11 20:06:44 +08:00
修改个人主页的url规则
This commit is contained in:
@@ -154,17 +154,17 @@ export const constantRoutes = [{
|
||||
hidden: true,
|
||||
component: (resolve) => require(['@/views/homepage/Index'], resolve),
|
||||
name: 'homePage',
|
||||
redirect: '/home/index',
|
||||
redirect: '/home/:id',
|
||||
meta: { title: '个人主页', icon: 'dashboard', noCache: true, affix: false },
|
||||
children: [{
|
||||
path: 'index',
|
||||
path: ':id',
|
||||
hidden: true,
|
||||
component: (resolve) => require(['@/views/homepage/page'], resolve),
|
||||
name: 'page',
|
||||
meta: { title: '个人主页', icon: 'dashboard', noCache: true, affix: true }
|
||||
},
|
||||
{
|
||||
path: 'leaving',
|
||||
path: ':id/leaving',
|
||||
hidden: true,
|
||||
component: (resolve) => require(['@/views/homepage/leavingMessage'], resolve),
|
||||
name: 'leavingMessage',
|
||||
|
||||
Reference in New Issue
Block a user