fix: url router

pull/24/MERGE
xingyu 2023-06-19 17:19:39 +08:00
parent cc4b3e4f00
commit 2e72f5b4ac
1 changed files with 3 additions and 1 deletions

View File

@ -99,7 +99,9 @@ export function createPermissionGuard(router: Router) {
const routes = await permissionStore.buildRoutesAction()
routes.forEach((route) => {
try {
router.addRoute(route as unknown as RouteRecordRaw)
} catch (e) {}
})
router.addRoute(PAGE_NOT_FOUND_ROUTE as unknown as RouteRecordRaw)