@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[
|
|
332
|
+
viewResolver = views[page];
|
|
333
333
|
if (!viewResolver) {
|
|
334
|
-
throw new Error("未找到名为 ".concat(
|
|
334
|
+
throw new Error("未找到名为 ".concat(page, " 的页面组件"));
|
|
335
335
|
}
|
|
336
336
|
return [
|
|
337
337
|
4,
|