ecinc-cloud-wappaio 9.6.430 → 9.6.431

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.
@@ -10315,13 +10315,13 @@ var actions = {
10315
10315
 
10316
10316
  //模块菜单定义路由
10317
10317
  topMenus.forEach(function (item) {
10318
+ var view = layout;
10319
+ if (item.href && (item.href.substring(0, 2) === '@/' || item.href.substring(0, 10) === '#/dcontent') && item.target === '_top') {
10320
+ view = window.$loadComponent(item.href);
10321
+ }
10322
+ var route = convertToRoute(view, item, null, null, null);
10323
+ accessedRoutes.push(route);
10318
10324
  if (!dynamicRoutes || item.id !== dynamicRoutes[0].meta.id) {
10319
- var view = layout;
10320
- if (item.href && (item.href.substring(0, 2) === '@/' || item.href.substring(0, 10) === '#/dcontent') && item.target === '_top') {
10321
- view = window.$loadComponent(item.href);
10322
- }
10323
- var route = convertToRoute(view, item, null, null, null);
10324
- accessedRoutes.push(route);
10325
10325
  var children = findChildrenRoute(view, response.body.listdata, item, null, null);
10326
10326
  accessedRoutes = accessedRoutes.concat(children);
10327
10327
  }
@@ -10325,13 +10325,13 @@ var actions = {
10325
10325
 
10326
10326
  //模块菜单定义路由
10327
10327
  topMenus.forEach(function (item) {
10328
+ var view = layout;
10329
+ if (item.href && (item.href.substring(0, 2) === '@/' || item.href.substring(0, 10) === '#/dcontent') && item.target === '_top') {
10330
+ view = window.$loadComponent(item.href);
10331
+ }
10332
+ var route = convertToRoute(view, item, null, null, null);
10333
+ accessedRoutes.push(route);
10328
10334
  if (!dynamicRoutes || item.id !== dynamicRoutes[0].meta.id) {
10329
- var view = layout;
10330
- if (item.href && (item.href.substring(0, 2) === '@/' || item.href.substring(0, 10) === '#/dcontent') && item.target === '_top') {
10331
- view = window.$loadComponent(item.href);
10332
- }
10333
- var route = convertToRoute(view, item, null, null, null);
10334
- accessedRoutes.push(route);
10335
10335
  var children = findChildrenRoute(view, response.body.listdata, item, null, null);
10336
10336
  accessedRoutes = accessedRoutes.concat(children);
10337
10337
  }