long
2022-01-21 958f5a5abc6b5d4efee768d0b181078c25d4199e
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
40
41
42
43
44
45
46
47
48
49
50
51
// 路由配置文件
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: '模板详情' }
    },
    {
      path: 'detail2',
      component: () => import('@/pages/demo/detail2'), // Parent router-view
      name: 'demoDetail2',
      meta: { title: '模板详情2' }
    },
    {
      path: 'listDialog',
      component: () => import('@/pages/demo/classList'), // Parent router-view
      name: 'listDialog',
      meta: { title: '子列表弹框例子' }
    }
  ]
}