vue2-client 1.4.42 → 1.4.43
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/CHANGELOG.md +1 -1
- package/package.json +1 -1
- package/src/utils/routerUtil.js +2 -2
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
package/src/utils/routerUtil.js
CHANGED
|
@@ -68,14 +68,14 @@ function parseRoutes (routesConfig, routerMap) {
|
|
|
68
68
|
// 当没有设置路由对象名或者设置的是blank路由对象时, 给空界面, path为名称
|
|
69
69
|
if (!item.router || item.router === 'blank') {
|
|
70
70
|
router = routerMap['blank']
|
|
71
|
-
item.path = item.name
|
|
71
|
+
item.path = encodeURI(item.name)
|
|
72
72
|
} else {
|
|
73
73
|
router = routerMap[item.router]
|
|
74
74
|
}
|
|
75
75
|
// 查看是否是单页面
|
|
76
76
|
if (item.meta && item.meta.singlePage) {
|
|
77
77
|
router = routerMap['singlePage']
|
|
78
|
-
item.path = item.name
|
|
78
|
+
item.path = encodeURI(item.name)
|
|
79
79
|
}
|
|
80
80
|
// 当没在动态路由对象中找到时, 不添加到路由
|
|
81
81
|
if (!router) return
|