@airpower/web 1.10.5 → 1.10.7
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/dist/main.js +1 -2
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -19319,13 +19319,12 @@ class RouterUtil {
|
|
|
19319
19319
|
menuList.forEach((item) => {
|
|
19320
19320
|
if (item.children && item.children.length > 0) {
|
|
19321
19321
|
this.addRouterAsync(item.children, parentRouter);
|
|
19322
|
-
return;
|
|
19323
19322
|
}
|
|
19324
19323
|
if (!this.router) {
|
|
19325
19324
|
FeedbackUtil.toastError("请先调用 createRouter 创建路由");
|
|
19326
19325
|
return;
|
|
19327
19326
|
}
|
|
19328
|
-
if (!item.name || !item.path) {
|
|
19327
|
+
if (!item.name || !item.path && !item.component) {
|
|
19329
19328
|
FeedbackUtil.toastError("路由初始化失败,缺少参数");
|
|
19330
19329
|
return;
|
|
19331
19330
|
}
|