index.js
883 Bytes
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
/*
* @Date: 2022-06-15 17:09:03
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2022-06-29 20:09:00
* @FilePath: /tswj/src/router/routes/modules/test/index.js
* @Description: 文件描述
*/
const index = [{
path: '/html2canvas',
name: 'html2canvas',
component: () => import('@/views/html2canvas.vue'),
redirect: '',
meta: {
icon: '',
title: 'DOM转image',
},
children: [],
}, {
path: '/test-slot',
name: 'test-slot',
component: () => import('@/views/test/test-slot.vue'),
redirect: '',
meta: {
icon: '',
title: '测试slot插槽',
},
children: [],
}, { // 配置404为动态路由中转页面
path: '/:pathMatch(.*)*',
redirect: '/404'
}, {
path: '/404',
name: '404',
component: () => import('@/views/test/404.vue'),
meta: {
icon: '',
title: '404',
},
children: [],
}];
export default index;