index.js 883 Bytes
/*
 * @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;