commit | author | age
|
d3f921
|
1 |
import BasicLayout from '../layouts/BasicLayout.vue' |
I |
2 |
import main from '../components/layouts/main.vue' |
|
3 |
|
|
4 |
|
|
5 |
export const asyncRouterMap = [{ |
|
6 |
path: '/', |
|
7 |
component: main, |
|
8 |
meta: { |
|
9 |
title: "在你左边,听风及雨" |
|
10 |
}, |
|
11 |
}, |
|
12 |
{ |
|
13 |
path: '/home', |
|
14 |
name: 'BasicLayout.vue', |
|
15 |
component: BasicLayout, |
|
16 |
meta: { |
|
17 |
title: '在你左边,听风及雨' |
|
18 |
}, |
|
19 |
children: [ |
|
20 |
|
|
21 |
] |
|
22 |
}, |
|
23 |
{ |
|
24 |
path: '*', |
|
25 |
redirect: '/404', |
|
26 |
hidden: true |
|
27 |
} |
|
28 |
] |
|
29 |
|
|
30 |
/** |
|
31 |
* 基础路由 |
|
32 |
* @type { *[] } |
|
33 |
*/ |
|
34 |
export const constantRouterMap = [ |
|
35 |
|
|
36 |
|
|
37 |
{ |
|
38 |
path: '/404', |
|
39 |
component: () => import( /* webpackChunkName: "fail" */ '@/views/exception/404') |
|
40 |
} |
|
41 |
|
|
42 |
] |
|
43 |
|