From 8d57fde6ab17d323b5ee690ecfd52b977dfb7b88 Mon Sep 17 00:00:00 2001 From: liqi <1174845810@qq.com> Date: Sat, 26 Apr 2025 15:30:11 +0800 Subject: [PATCH] 1 --- src/views/contentData/Footer/index.vue | 66 +++++++++++++------------- 1 file changed, 33 insertions(+), 33 deletions(-) diff --git a/src/views/contentData/Footer/index.vue b/src/views/contentData/Footer/index.vue index 7f0c361..b837d6c 100644 --- a/src/views/contentData/Footer/index.vue +++ b/src/views/contentData/Footer/index.vue @@ -47,39 +47,39 @@ export default { this.$refs.rightBtn.style.background = `url(${require("@/assets/img/right-hover.png")})`; } - let wPath = window.document.location.href; - let pathName = this.$route.path; - let pos = wPath.indexOf(pathName); - let localhostPath = wPath.substring(0, pos); - this.uploadUrl = - process.env.VUE_APP_API_URL === "/" - ? localhostPath - : process.env.VUE_APP_API_URL; - let graphicLayer = window.marsMap.getLayerById("devLog"); - graphicLayer.eachGraphic((graphic) => { - console.log(graphic, value, "graphic"); - if (value === 1) { - graphic.setOptions({ - style: { - image: require(`@/assets/img/device/deviceIcon/${graphic.attr.icon}.png`) - } - }); - } else { - if (graphic.attr.img !== null) { - graphic.setOptions({ - style: { - image: this.uploadUrl + graphic.attr.img - } - }); - } else { - graphic.setOptions({ - style: { - image: require("@/assets/img/group.png") - } - }); - } - } - }); + // let wPath = window.document.location.href; + // let pathName = this.$route.path; + // let pos = wPath.indexOf(pathName); + // let localhostPath = wPath.substring(0, pos); + // this.uploadUrl = + // process.env.VUE_APP_API_URL === "/" + // ? localhostPath + // : process.env.VUE_APP_API_URL; + // let graphicLayer = window.marsMap.getLayerById("devLog"); + // graphicLayer.eachGraphic((graphic) => { + // console.log(graphic, value, "graphic"); + // if (value === 1) { + // graphic.setOptions({ + // style: { + // image: require(`@/assets/img/device/deviceIcon/${graphic.attr.icon}.png`) + // } + // }); + // } else { + // if (graphic.attr.img !== null) { + // graphic.setOptions({ + // style: { + // image: this.uploadUrl + graphic.attr.img + // } + // }); + // } else { + // graphic.setOptions({ + // style: { + // image: require("@/assets/img/group.png") + // } + // }); + // } + // } + // }); } } };