| | |
| | | { path: '/', component: () => import('@/views/login/index'), hidden: true },
|
| | | // { path: '/login', component: () => import('@/views/login/index'), hidden: true },
|
| | | // 首页
|
| | | { path: '/home',
|
| | | component: () => import('@/views/home/index'),
|
| | | children: [
|
| | | {
|
| | | path: 'index',
|
| | | name: 'index',
|
| | | component: () => import('@/views/home/Welcome')
|
| | | },
|
| | | {
|
| | | path: 'map',
|
| | | name: 'map',
|
| | | component: () => import('@/container/Map/index')
|
| | | }
|
| | | ]
|
| | | },
|
| | | {
|
| | | path: '/dashboard',
|
| | | component: Layout,
|
| | |
| | | ]
|
| | |
|
| | | export default new Router({
|
| | | mode: 'history',
|
| | | base: '/mdc/',
|
| | | mode: 'hash',
|
| | | base: '/',
|
| | | scrollBehavior: () => ({ y: 0 }),
|
| | | routes: constantRouterMap
|
| | | })
|