@vlian/router 1.0.8 → 1.0.9

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.
@@ -329,9 +329,9 @@ export var useRouterTransform = function(config, rootRoutes, options) {
329
329
  3,
330
330
  4
331
331
  ];
332
- viewResolver = views[pageName];
332
+ viewResolver = views[page];
333
333
  if (!viewResolver) {
334
- throw new Error("未找到名为 ".concat(pageName, " 的页面组件"));
334
+ throw new Error("未找到名为 ".concat(page, " 的页面组件"));
335
335
  }
336
336
  return [
337
337
  4,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vlian/router",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
4
4
  "description": "基于 React Router 的路由管理包,支持动态路由、权限控制、路由转换等功能",
5
5
  "keywords": [
6
6
  "router",