fix: url router
parent
cc4b3e4f00
commit
2e72f5b4ac
|
@ -99,7 +99,9 @@ export function createPermissionGuard(router: Router) {
|
|||
const routes = await permissionStore.buildRoutesAction()
|
||||
|
||||
routes.forEach((route) => {
|
||||
router.addRoute(route as unknown as RouteRecordRaw)
|
||||
try {
|
||||
router.addRoute(route as unknown as RouteRecordRaw)
|
||||
} catch (e) {}
|
||||
})
|
||||
|
||||
router.addRoute(PAGE_NOT_FOUND_ROUTE as unknown as RouteRecordRaw)
|
||||
|
|
Loading…
Reference in New Issue