1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
| // 路由配置文件
| import Layout from '@/layout'
|
| export default {
| path: '/demo',
| component: Layout,
| redirect: '/demo/index',
| name: 'demo',
| meta: {
| title: '模板',
| icon: 'coupon'
| },
| children: [
| {
| path: 'index',
| component: () => import('@/pages/demo/index'), // Parent router-view
| name: 'demoIndex',
| meta: { title: '模板列表' }
| },
| {
| path: 'list',
| component: () => import('@/pages/demo/list'), // Parent router-view
| name: 'demoList',
| meta: { title: '功能展示列表' }
| },
| {
| path: 'form',
| component: () => import('@/pages/demo/form'), // Parent router-view
| name: 'demoForm',
| meta: { title: '模板表单' }
| },
| {
| path: 'detail',
| component: () => import('@/pages/demo/detail'), // Parent router-view
| name: 'demoDetail',
| meta: { title: '模板详情' }
| }
| ]
| }
|
|