mirror of
https://github.com/iczer/vue-antd-admin
synced 2025-04-05 07:27:06 +08:00
Merge pull request #186 from fqucuo/patch-1
Optimization: Add beforeEnter parsing to asynchronous routing; 优化:异步路由中增加对beforeEnter的解析;
This commit is contained in:
commit
cc60ff1a27
@ -75,6 +75,9 @@ function parseRoutes(routesConfig, routerMap) {
|
||||
redirect: routeCfg.redirect || router.redirect,
|
||||
meta: {...meta, authority: meta.authority || '*'}
|
||||
}
|
||||
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