src/router/index.js
@@ -87,7 +87,32 @@ meta: { title: '个人中心', icon: 'user' } } ] } }, { path: '/process', component: Layout, hidden: true, children: [ { path: ':taskType/:step/:taskId', component: () => import('@/views/todo/processTask'), name: 'process', meta: { title: '处理待办' } } ] }, { path: '/project', component: Layout, children: [ { path: '/plan/index', component: () => import('@/views/project/plan/index'), name: 'Index', meta: { title: '项目计划' } } ] }, ] // 动态路由,基于用户权限动态去加载