| | |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | path: '/login', |
| | | component: () => import('@/views/login'), |
| | | hidden: true |
| | | }, |
| | | // { |
| | | // path: '/login', |
| | | // component: () => import('@/views/login'), |
| | | // hidden: true |
| | | // }, |
| | | { |
| | | path: '/register', |
| | | component: () => import('@/views/register'), |
| | |
| | | { |
| | | path: '', |
| | | component: Layout, |
| | | redirect: 'index', |
| | | children: [ |
| | | { |
| | | path: 'index', |
| | | component: () => import('@/views/index'), |
| | | name: 'Index', |
| | | meta: { title: '首页', icon: 'dashboard', affix: true } |
| | | } |
| | | ] |
| | | redirect: 'system/user', |
| | | // children: [ |
| | | // { |
| | | // path: 'index', |
| | | // component: () => import('@/views/index'), |
| | | // name: 'Index', |
| | | // meta: { title: '首页', icon: 'dashboard', affix: true } |
| | | // } |
| | | // ] |
| | | }, |
| | | { |
| | | path: '/user', |
| | |
| | | |
| | | export default new Router({ |
| | | mode: 'history', // 去掉url中的# |
| | | base: process.env.VUE_APP_ITEM_PATH, |
| | | scrollBehavior: () => ({ y: 0 }), |
| | | routes: constantRoutes |
| | | }) |