index.js 1.11 KB
/*
 * @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;