| | |
| | | { |
| | | path: '', |
| | | component: Layout, |
| | | redirect: 'index', |
| | | redirect: 'screen', |
| | | children: [ |
| | | { |
| | | path: 'index', |
| | |
| | | meta: { title: '首页', icon: 'dashboard', affix: true } |
| | | } |
| | | ] |
| | | }, |
| | | |
| | | // { |
| | | // path: '', |
| | | // component: Layout, |
| | | // redirect: 'index', |
| | | // children: [ |
| | | // { |
| | | // path: 'index', |
| | | // component: () => import('@/views/index'), |
| | | // name: 'Index', |
| | | // meta: { title: '首页', icon: 'dashboard', affix: true } |
| | | // } |
| | | // ] |
| | | // }, |
| | | { |
| | | path: '/screen', |
| | | hidden: true, |
| | | component: () => import('@/views/screen/index'), |
| | | }, |
| | | { |
| | | path: '/user', |
| | |
| | | |
| | | // 动态路由,基于用户权限动态去加载 |
| | | export const dynamicRoutes = [ |
| | | |
| | | { |
| | | path: '/data-manage/data-detail', |
| | | component: Layout, |
| | | hidden: true, |
| | | permissions: ['data:manage:detail'], |
| | | children: [ |
| | | { |
| | | path: 'index/:type/:typeId', |
| | | component: () => import('@/views/system/data-manage/data-detail'), |
| | | name: 'DataDetail', |
| | | meta: { |
| | | title: '数据详情', |
| | | activeMenu: '/data-manage' |
| | | } |
| | | } |
| | | ] |
| | | }, |
| | | |
| | | { |
| | | path: '/system/user-auth', |
| | | component: Layout, |