diff --git a/src/utils/routerUtil.js b/src/utils/routerUtil.js index 037cb10..6f0b148 100644 --- a/src/utils/routerUtil.js +++ b/src/utils/routerUtil.js @@ -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 }