Merge pull request #165 from lsvih/patch-1

修复一个路由解析时候丢失 meta 值的问题
master
iczer 4 years ago committed by GitHub
commit 5c6b2a2048
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      src/utils/routerUtil.js

@ -50,10 +50,10 @@ function parseRoutes(routesConfig, routerMap) {
component: router.component,
redirect: routeCfg.redirect || router.redirect,
meta: {
authority: routeCfg.authority || router.authority || '*',
icon: routeCfg.icon || router.icon,
page: routeCfg.page || router.page,
link: routeCfg.link || router.link
authority: routeCfg.authority || router.authority || routeCfg.meta?.authority || router.meta?.authority || '*',
icon: routeCfg.icon || router.icon || routeCfg.meta?.icon || router.meta?.icon,
page: routeCfg.page || router.page || routeCfg.meta?.page || router.meta?.page,
link: routeCfg.link || router.link || routeCfg.meta?.link || router.meta?.link
}
}
if (routeCfg.invisible || router.invisible) {

Loading…
Cancel
Save