@10yun/open-sdk 0.3.123 → 0.3.124

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.
@@ -41,17 +41,19 @@ function parseDataToMenu(appFlag, oldData) {
41
41
  * 处理 - 子菜单
42
42
  */
43
43
  let newChildren = [];
44
- tempChildren.forEach((item2, index2) => {
44
+ for (let index2 in tempChildren) {
45
+ let item2 = tempChildren[index2];
45
46
  if (item2.isMenu) {
46
47
  item2['parentId'] = item1.name;
47
48
  newChildren.push(item2);
48
49
  }
49
- });
50
+ }
50
51
  /**
51
52
  * 处理 - 子操作项
52
53
  */
53
54
  let newOption = [];
54
- tempChildren.forEach((item2, index2) => {
55
+ for (let index2 in tempChildren) {
56
+ let item2 = tempChildren[index2];
55
57
  item2 = parseRouteItem(item2);
56
58
  if (nameOnlyArr[item2.name]) {
57
59
  item2.name = item2.name + '_' + index2;
@@ -63,7 +65,7 @@ function parseDataToMenu(appFlag, oldData) {
63
65
  item2.checked = false;
64
66
  newOption.push(item2);
65
67
  }
66
- });
68
+ }
67
69
  // 如果不存在的子操作
68
70
  if (newOption.length > 0) {
69
71
  item_new.menuOptionsList = newOption;
package/common/router.js CHANGED
@@ -70,12 +70,13 @@ function parseChildrenOption() {}
70
70
  function parseChildrenMenu() {}
71
71
  function parseRouteTree(originalArr) {
72
72
  let newArr = [];
73
- originalArr.forEach((tempItem1, index1) => {
73
+ for (let index1 in originalArr) {
74
+ let tempItem1 = originalArr[index1];
74
75
  tempItem1 = parseRouteItem(tempItem1, index1);
75
76
  if (tempItem.children) {
76
77
  tempItem.children = parseRouteTree(tempItem.children);
77
78
  }
78
- });
79
+ }
79
80
  }
80
81
  /**
81
82
  * 树形数据 向下 递归为一维数组
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("./index-BWLMDM4T.cjs"),c={},s={class:"cloud-404-wrap"};function d(r,o){return e.openBlock(),e.createElementBlock("div",s,[...o[0]||(o[0]=[e.createElementVNode("div",{class:"cloud-404-box"},[e.createElementVNode("div",{class:"cloud-404-code"},"404"),e.createElementVNode("div",{class:"cloud-404-message"},"Not Found")],-1)])])}const n=t._export_sfc(c,[["render",d]]);exports.default=n;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("./index-NK8pC8CF.cjs"),c={},s={class:"cloud-404-wrap"};function d(r,o){return e.openBlock(),e.createElementBlock("div",s,[...o[0]||(o[0]=[e.createElementVNode("div",{class:"cloud-404-box"},[e.createElementVNode("div",{class:"cloud-404-code"},"404"),e.createElementVNode("div",{class:"cloud-404-message"},"Not Found")],-1)])])}const n=t._export_sfc(c,[["render",d]]);exports.default=n;
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as c, openBlock as s, createElementVNode as o } from "vue";
2
- import { _ as t } from "./index-CK8iTQCN.js";
2
+ import { _ as t } from "./index-BVWiD6lA.js";
3
3
  const d = {}, r = { class: "cloud-404-wrap" };
4
4
  function l(n, e) {
5
5
  return s(), c("div", r, [...e[0] || (e[0] = [
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./index-BWLMDM4T.cjs"),c={},t={class:"cloud-none-wrap",style:{"background-color":"none"}};function r(s,o){return e.openBlock(),e.createElementBlock("div",t,[...o[0]||(o[0]=[e.createElementVNode("div",{class:"cloud-none-box"},[e.createElementVNode("div",{class:"cloud-none-code"},"不建议,子应用单独运行~"),e.createElementVNode("div",{class:"cloud-none-message"},"Not Alone")],-1)])])}const l=n._export_sfc(c,[["render",r]]);exports.default=l;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./index-NK8pC8CF.cjs"),c={},t={class:"cloud-none-wrap",style:{"background-color":"none"}};function r(s,o){return e.openBlock(),e.createElementBlock("div",t,[...o[0]||(o[0]=[e.createElementVNode("div",{class:"cloud-none-box"},[e.createElementVNode("div",{class:"cloud-none-code"},"不建议,子应用单独运行~"),e.createElementVNode("div",{class:"cloud-none-message"},"Not Alone")],-1)])])}const l=n._export_sfc(c,[["render",r]]);exports.default=l;
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as n, openBlock as c, createElementVNode as o } from "vue";
2
- import { _ as s } from "./index-CK8iTQCN.js";
2
+ import { _ as s } from "./index-BVWiD6lA.js";
3
3
  const r = {}, t = {
4
4
  class: "cloud-none-wrap",
5
5
  style: { "background-color": "none" }