commit | author | age
|
41b36f
|
1 |
import baseLayout from '../components/layouts/baseLayout.vue' |
I |
2 |
|
|
3 |
import articleList from '../components/group/articleList.vue' |
|
4 |
|
|
5 |
import main1 from '../components/swichLabel/main1-show.vue' |
|
6 |
import main2 from '../components/swichLabel/main2-show.vue' |
|
7 |
import main3 from '../components/swichLabel/main3-show.vue' |
|
8 |
|
|
9 |
import box1 from '../components/mini/box1-info.vue' |
|
10 |
import tagTime from '../components/mini/tagTime.vue' |
|
11 |
import tagInfo from '../components/mini/tagInfo.vue' |
|
12 |
import mdDetail from '../components/mini/mdDetail.vue' |
d3f921
|
13 |
|
I |
14 |
|
|
15 |
export const asyncRouterMap = [{ |
ad2b70
|
16 |
path: '*', |
L |
17 |
// redirect: '/404', |
|
18 |
component: () => import( /* webpackChunkName: "fail" */ '@/views/exception/404'), |
|
19 |
hidden: true |
d3f921
|
20 |
}, |
I |
21 |
{ |
ad2b70
|
22 |
path: '/', |
41b36f
|
23 |
component: baseLayout, |
ad2b70
|
24 |
children: [{ |
L |
25 |
path: '/', |
|
26 |
component: main1, |
|
27 |
children: [{ |
|
28 |
path: '/', |
41b36f
|
29 |
component: articleList, |
ad2b70
|
30 |
}, |
L |
31 |
{ |
|
32 |
path: '/box1', |
|
33 |
component: box1, |
56a4b8
|
34 |
}, |
I |
35 |
{ |
|
36 |
path: '/tagTime', |
|
37 |
component: tagTime, |
41b36f
|
38 |
props:true |
56a4b8
|
39 |
}, |
I |
40 |
{ |
|
41 |
path: '/tagInfo', |
|
42 |
component: tagInfo, |
|
43 |
}, |
|
44 |
{ |
|
45 |
path: '/mdDetail', |
|
46 |
component: mdDetail, |
ad2b70
|
47 |
} |
L |
48 |
] |
|
49 |
}, |
|
50 |
{ |
|
51 |
path: '/main1', |
|
52 |
component: main1, |
|
53 |
children: [{ |
|
54 |
path: '/', |
41b36f
|
55 |
component: articleList, |
ad2b70
|
56 |
}] |
L |
57 |
}, |
56a4b8
|
58 |
|
ad2b70
|
59 |
{ |
L |
60 |
path: '/main2', |
|
61 |
component: main2, |
|
62 |
}, |
56a4b8
|
63 |
{ |
I |
64 |
path: '/main3', |
|
65 |
component: main3, |
|
66 |
}, |
|
67 |
|
d3f921
|
68 |
|
I |
69 |
] |
|
70 |
}, |
ad2b70
|
71 |
|
L |
72 |
|
d3f921
|
73 |
] |
ad2b70
|
74 |
|
d3f921
|
75 |
|
I |
76 |
/** |
|
77 |
* 基础路由 |
|
78 |
* @type { *[] } |
|
79 |
*/ |
ad2b70
|
80 |
export const constantRouterMap = [{ |
d3f921
|
81 |
path: '/404', |
I |
82 |
component: () => import( /* webpackChunkName: "fail" */ '@/views/exception/404') |
|
83 |
} |
|
84 |
|
|
85 |
] |