提交 | 用户 | 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', |
|
24 |
meta: { title: '模板超多列表' } |
|
25 |
}, |
|
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: '模板详情' } |
2a61f6
|
37 |
} |
L |
38 |
] |
|
39 |
} |
|
40 |
|