From f5bc90c249c680c613f93c38490822735bfbd0c9 Mon Sep 17 00:00:00 2001 From: dai <851733175@qq.com> Date: Thu, 29 Sep 2022 15:43:16 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E5=9B=BE=E6=A0=87=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/index.js | 6 +++--- src/views/modules/visual/command/cpts/map.vue | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/router/index.js b/src/router/index.js index fb66b869c..de595a814 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -112,20 +112,20 @@ function cookApiDataItem(item) { function n2one(v) { let ret = []; for (let i = 0; i < v.length; i++) { - console.log("xxxxx", v[i]); + // console.log("xxxxx", v[i]); ret.push(v[i]); if (Array.isArray(v[i].children) && v[i].children.length > 0) { ret.push(...n2one(v[i].children)); } } - console.log("aaaa", ret); + // console.log("aaaa", ret); return ret; } let allChildrenUrl = n2one(item.children) .filter((i) => i.url != "" && i.showFlag == 1) .map((i) => i.url); - console.log("))))))))))))", allChildrenUrl); + // console.log("))))))))))))", allChildrenUrl); if (item.children.length > 0) { if (item.url == "" || !allChildrenUrl.find((i) => i.url == item.url)) { diff --git a/src/views/modules/visual/command/cpts/map.vue b/src/views/modules/visual/command/cpts/map.vue index d80fa0d74..faaf0a6e4 100644 --- a/src/views/modules/visual/command/cpts/map.vue +++ b/src/views/modules/visual/command/cpts/map.vue @@ -516,6 +516,7 @@ export default { iniMapDot(scene) { const { darkStyle, lightStyle, dotIcoList, dotData } = this; + console.log('--------------------------图标', dotIcoList) Object.keys(dotIcoList).forEach((k) => { scene.addImage(k, dotIcoList[k]); });