Showing
1 changed file
with
29 additions
and
23 deletions
| ... | @@ -15,28 +15,34 @@ const index = [{ | ... | @@ -15,28 +15,34 @@ const index = [{ |
| 15 | title: 'DOM转image', | 15 | title: 'DOM转image', |
| 16 | }, | 16 | }, |
| 17 | children: [], | 17 | children: [], |
| 18 | -}, { | 18 | +}, |
| 19 | - path: '/test-slot', | 19 | +// src/views/test/* 在 .gitignore 中被忽略,干净环境没有下面两个测试页面。 |
| 20 | - name: 'test-slot', | 20 | +// 保留原配置注释,避免生产构建解析不存在的组件而失败。 |
| 21 | - component: () => import('@/views/test/test-slot.vue'), | 21 | +// { |
| 22 | - redirect: '', | 22 | +// path: '/test-slot', |
| 23 | - meta: { | 23 | +// name: 'test-slot', |
| 24 | - icon: '', | 24 | +// component: () => import('@/views/test/test-slot.vue'), |
| 25 | - title: '测试slot插槽', | 25 | +// redirect: '', |
| 26 | - }, | 26 | +// meta: { |
| 27 | - children: [], | 27 | +// icon: '', |
| 28 | -}, { // 配置404为动态路由中转页面 | 28 | +// title: '测试slot插槽', |
| 29 | - path: '/:pathMatch(.*)*', | 29 | +// }, |
| 30 | - redirect: '/404' | 30 | +// children: [], |
| 31 | -}, { | 31 | +// }, |
| 32 | - path: '/404', | 32 | +// { // 配置404为动态路由中转页面 |
| 33 | - name: '404', | 33 | +// path: '/:pathMatch(.*)*', |
| 34 | - component: () => import('@/views/test/404.vue'), | 34 | +// redirect: '/404' |
| 35 | - meta: { | 35 | +// }, |
| 36 | - icon: '', | 36 | +// { |
| 37 | - title: '404', | 37 | +// path: '/404', |
| 38 | - }, | 38 | +// name: '404', |
| 39 | - children: [], | 39 | +// component: () => import('@/views/test/404.vue'), |
| 40 | -}]; | 40 | +// meta: { |
| 41 | +// icon: '', | ||
| 42 | +// title: '404', | ||
| 43 | +// }, | ||
| 44 | +// children: [], | ||
| 45 | +// } | ||
| 46 | +]; | ||
| 41 | 47 | ||
| 42 | export default index; | 48 | export default index; | ... | ... |
-
Please register or login to post a comment