mirror of
https://github.com/iczer/vue-antd-admin
synced 2025-04-05 07:27:06 +08:00
异步路由中增加对beforeEnter的解析
异步路由中增加对beforeEnter的解析
This commit is contained in:
parent
9ddd117d5e
commit
f0d60a8242
@ -56,6 +56,9 @@ function parseRoutes(routesConfig, routerMap) {
|
||||
link: routeCfg.link || router.link || routeCfg.meta?.link || router.meta?.link
|
||||
}
|
||||
}
|
||||
if (router.beforeEnter) {
|
||||
route.beforeEnter = router.beforeEnter
|
||||
}
|
||||
if (routeCfg.invisible || router.invisible) {
|
||||
route.meta.invisible = true
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user