Browse Source
feat: use the not-found component instead of the invalid route component in the backend mode (#5871)
* 后端菜单模式下,使用not-found组件代替无效的路由组件
pull/5872/head
Netfan
10 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
0 deletions
-
packages/utils/src/helpers/generate-routes-backend.ts
|
|
|
@ -63,6 +63,7 @@ function convertRoutes( |
|
|
|
route.component = pageMap[pageKey]; |
|
|
|
} else { |
|
|
|
console.error(`route component is invalid: ${pageKey}`, route); |
|
|
|
route.component = pageMap['/_core/fallback/not-found.vue']; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|