1
0
mirror of https://github.com/iczer/vue-antd-admin synced 2025-04-06 04:00:06 +08:00

chore: add menu invisible configuration for async router; 🌟

This commit is contained in:
iczer 2020-08-06 15:06:20 +08:00
parent af0cce4f1e
commit a55210f9a6

@ -36,6 +36,9 @@ function parseRoutes(routesConfig, routerMap) {
page: routeCfg.page || router.page
}
}
if (routeCfg.invisible || router.invisible) {
route.meta.invisible = true
}
if (routeCfg.children && routeCfg.children.length > 0) {
route.children = parseRoutes(routeCfg.children, routerMap)
}