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