汪安军

修复编译错误

......@@ -15,28 +15,34 @@ const index = [{
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: [],
}];
},
// 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;
......