chore: add menu invisible configuration for async router; 🌟

master
iczer 4 years ago
parent af0cce4f1e
commit a55210f9a6
  1. 3
      src/utils/routerUtil.js

@ -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)
}

Loading…
Cancel
Save