You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
920 B
41 lines
920 B
import { BasicLayouts, LoginView, RouteView } from '@/layouts' |
|
/** |
|
* 基础路由 |
|
* @type { *[] } |
|
*/ |
|
|
|
export const routerMap = [ |
|
{ |
|
path: '/loginview', |
|
component: LoginView, |
|
redirect: '/loginview/login', |
|
children: [ |
|
{ |
|
path: '/loginview/login', |
|
name: 'login', |
|
component: () => import('@/views/LoginView'), |
|
meta: { title: '登录' } |
|
}, |
|
] |
|
}, |
|
{ |
|
path: '/', |
|
component: BasicLayouts, |
|
redirect: '/home', |
|
children: [ |
|
{ |
|
path: '/home', |
|
name: 'Home', |
|
component: () => import('@/views/home/home'), |
|
meta: { title: '首页' } |
|
}, |
|
] |
|
}, |
|
{ |
|
hide: true, |
|
path: '/:pathMatch(.*)*', |
|
component: () => import('@/views/404'), |
|
}, |
|
|
|
] |
|
|