提交 | 用户 | age
|
2a61f6
|
1 |
// 路由配置文件 |
L |
2 |
import Layout from '@/layout' |
|
3 |
|
|
4 |
export default { |
|
5 |
path: '/demo', |
|
6 |
component: Layout, |
|
7 |
redirect: '/demo/index', |
|
8 |
name: 'demo', |
|
9 |
meta: { |
|
10 |
title: '模板', |
|
11 |
icon: 'coupon' |
|
12 |
}, |
|
13 |
children: [ |
|
14 |
{ |
|
15 |
path: 'index', |
|
16 |
component: () => import('@/pages/demo/index'), // Parent router-view |
|
17 |
name: 'demoIndex', |
|
18 |
meta: { title: '模板列表' } |
ad3cc5
|
19 |
}, |
L |
20 |
{ |
36b711
|
21 |
path: 'list', |
L |
22 |
component: () => import('@/pages/demo/list'), // Parent router-view |
|
23 |
name: 'demoList', |
1dcdda
|
24 |
meta: { title: '功能展示列表' } |
36b711
|
25 |
}, |
L |
26 |
{ |
ad3cc5
|
27 |
path: 'form', |
L |
28 |
component: () => import('@/pages/demo/form'), // Parent router-view |
|
29 |
name: 'demoForm', |
|
30 |
meta: { title: '模板表单' } |
4ae5fb
|
31 |
}, |
L |
32 |
{ |
|
33 |
path: 'detail', |
|
34 |
component: () => import('@/pages/demo/detail'), // Parent router-view |
|
35 |
name: 'demoDetail', |
|
36 |
meta: { title: '模板详情' } |
20ba22
|
37 |
}, |
L |
38 |
{ |
2f7798
|
39 |
path: 'detail2', |
L |
40 |
component: () => import('@/pages/demo/detail2'), // Parent router-view |
|
41 |
name: 'demoDetail2', |
|
42 |
meta: { title: '模板详情2' } |
|
43 |
}, |
|
44 |
{ |
20ba22
|
45 |
path: 'listDialog', |
L |
46 |
component: () => import('@/pages/demo/classList'), // Parent router-view |
|
47 |
name: 'listDialog', |
|
48 |
meta: { title: '子列表弹框例子' } |
2a61f6
|
49 |
} |
L |
50 |
] |
|
51 |
} |
|
52 |
|