Showing
1 changed file
with
3 additions
and
5 deletions
| 1 | /* | 1 | /* |
| 2 | * @Date: 2022-06-15 17:09:03 | 2 | * @Date: 2022-06-15 17:09:03 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2022-06-29 18:36:37 | 4 | + * @LastEditTime: 2022-06-29 20:09:00 |
| 5 | * @FilePath: /tswj/src/router/routes/modules/test/index.js | 5 | * @FilePath: /tswj/src/router/routes/modules/test/index.js |
| 6 | * @Description: 文件描述 | 6 | * @Description: 文件描述 |
| 7 | */ | 7 | */ |
| ... | @@ -25,12 +25,10 @@ const index = [{ | ... | @@ -25,12 +25,10 @@ const index = [{ |
| 25 | title: '测试slot插槽', | 25 | title: '测试slot插槽', |
| 26 | }, | 26 | }, |
| 27 | children: [], | 27 | children: [], |
| 28 | -}, | 28 | +}, { // 配置404为动态路由中转页面 |
| 29 | -{ | ||
| 30 | path: '/:pathMatch(.*)*', | 29 | path: '/:pathMatch(.*)*', |
| 31 | redirect: '/404' | 30 | redirect: '/404' |
| 32 | -}, | 31 | +}, { |
| 33 | -{ | ||
| 34 | path: '/404', | 32 | path: '/404', |
| 35 | name: '404', | 33 | name: '404', |
| 36 | component: () => import('@/views/test/404.vue'), | 34 | component: () => import('@/views/test/404.vue'), | ... | ... |
-
Please register or login to post a comment