vue2-client 1.2.40 → 1.2.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/src/utils/routerUtil.js
CHANGED
|
@@ -110,7 +110,7 @@ function parseRoutes (routesConfig, routerMap) {
|
|
|
110
110
|
route.children = parseRoutes(routeCfg.children, routerMap)
|
|
111
111
|
}
|
|
112
112
|
// 当没有子并且自己时blank(空界面)时, 不添加到路由
|
|
113
|
-
if (route.component.name === 'blank' && route.children.length <= 0) return
|
|
113
|
+
if (route.component.name === 'blank' && route.children && route.children.length <= 0) return
|
|
114
114
|
routes.push(route)
|
|
115
115
|
})
|
|
116
116
|
return routes
|