index.js
1.11 KB
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
/*
* @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: [],
},
// src/views/test/* 在 .gitignore 中被忽略,干净环境没有下面两个测试页面。
// 保留原配置注释,避免生产构建解析不存在的组件而失败。
// {
// 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;