提交 | 用户 | 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 |
{ |
|
21 |
path: 'form', |
|
22 |
component: () => import('@/pages/demo/form'), // Parent router-view |
|
23 |
name: 'demoForm', |
|
24 |
meta: { title: '模板表单' } |
2a61f6
|
25 |
} |
L |
26 |
] |
|
27 |
} |
|
28 |
|