Skip to content

Commit 82561b7

Browse files
committed
feat: use the not-found component instead of the invalid route component in the backend mode
* 后端菜单模式下,使用not-found组件代替无效的路由组件
1 parent 3600603 commit 82561b7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/utils/src/helpers/generate-routes-backend.ts

+1
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ function convertRoutes(
6363
route.component = pageMap[pageKey];
6464
} else {
6565
console.error(`route component is invalid: ${pageKey}`, route);
66+
route.component = pageMap['/_core/fallback/not-found.vue'];
6667
}
6768
}
6869

0 commit comments

Comments
 (0)