@airpower/web 1.10.3 → 1.10.4

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.
Files changed (2) hide show
  1. package/dist/main.js +13 -6
  2. package/package.json +1 -1
package/dist/main.js CHANGED
@@ -19328,19 +19328,26 @@ class RouterUtil {
19328
19328
  if (this.router.hasRoute(item.id.toString())) {
19329
19329
  return;
19330
19330
  }
19331
+ if (item.children && item.children.length > 0) {
19332
+ this.router.addRoute(parentRouter, {
19333
+ path: item.path,
19334
+ name: item.id.toString(),
19335
+ meta: {
19336
+ name: item.name
19337
+ },
19338
+ redirect: item.children[0].path
19339
+ });
19340
+ this.addRouterAsync(item.children, parentRouter);
19341
+ return;
19342
+ }
19331
19343
  this.router.addRoute(parentRouter, {
19332
19344
  path: item.path,
19333
19345
  name: item.id.toString(),
19334
19346
  meta: {
19335
19347
  name: item.name
19336
19348
  },
19337
- redirect: item.children && item.children.length > 0 ? item.children[0].path.toString() : void 0,
19338
- component: this.components[`${this.componentsDirectory}${item.component || item.path}.vue`],
19339
- children: []
19349
+ component: this.components[`${this.componentsDirectory}${item.component || item.path}.vue`]
19340
19350
  });
19341
- if (item.children && item.children.length > 0) {
19342
- this.addRouterAsync(item.children, parentRouter);
19343
- }
19344
19351
  });
19345
19352
  }
19346
19353
  /**
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@airpower/web",
3
3
  "type": "module",
4
- "version": "1.10.3",
4
+ "version": "1.10.4",
5
5
  "description": "AirPower-Web",
6
6
  "author": {
7
7
  "name": "Hamm",