Commit b0ad08db by Netfan Committed by GitHub

feat: use the not-found component instead of the invalid route component in the backend mode (#5871)

* 后端菜单模式下,使用not-found组件代替无效的路由组件
1 parent 36006030
...@@ -63,6 +63,7 @@ function convertRoutes( ...@@ -63,6 +63,7 @@ function convertRoutes(
route.component = pageMap[pageKey]; route.component = pageMap[pageKey];
} else { } else {
console.error(`route component is invalid: ${pageKey}`, route); console.error(`route component is invalid: ${pageKey}`, route);
route.component = pageMap['/_core/fallback/not-found.vue'];
} }
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!