1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
| // 路由配置文件
| 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: '模板列表' }
| }
| ]
| }
|
|