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' |
|
4 |
import box6 from '../components/layouts/box6-articleList.vue' |
|
5 |
import box1 from '../components/layouts/box1-info.vue' |
|
6 |
import box2 from '../components/layouts/box2-class.vue' |
d3f921
|
7 |
|
I |
8 |
|
|
9 |
export const asyncRouterMap = [{ |
ad2b70
|
10 |
path: '*', |
L |
11 |
// redirect: '/404', |
|
12 |
component: () => import( /* webpackChunkName: "fail" */ '@/views/exception/404'), |
|
13 |
hidden: true |
d3f921
|
14 |
}, |
I |
15 |
{ |
ad2b70
|
16 |
path: '/', |
L |
17 |
component: main, |
|
18 |
children: [{ |
|
19 |
path: '/', |
|
20 |
component: main1, |
|
21 |
children: [{ |
|
22 |
path: '/', |
|
23 |
component: box6, |
|
24 |
}, |
|
25 |
{ |
|
26 |
path: '/box1', |
|
27 |
component: box1, |
|
28 |
} |
|
29 |
] |
|
30 |
}, |
|
31 |
{ |
|
32 |
path: '/main1', |
|
33 |
component: main1, |
|
34 |
children: [{ |
|
35 |
path: '/', |
|
36 |
component: box6, |
|
37 |
}] |
|
38 |
}, |
|
39 |
{ |
|
40 |
path: '/main2', |
|
41 |
component: main2, |
|
42 |
|
|
43 |
}, |
d3f921
|
44 |
|
I |
45 |
] |
|
46 |
}, |
ad2b70
|
47 |
|
L |
48 |
|
d3f921
|
49 |
] |
ad2b70
|
50 |
|
d3f921
|
51 |
|
I |
52 |
/** |
|
53 |
* 基础路由 |
|
54 |
* @type { *[] } |
|
55 |
*/ |
ad2b70
|
56 |
export const constantRouterMap = [{ |
d3f921
|
57 |
path: '/404', |
I |
58 |
component: () => import( /* webpackChunkName: "fail" */ '@/views/exception/404') |
|
59 |
} |
|
60 |
|
|
61 |
] |