From 46a111f01ff31feb39fddb0d333466a1a3ccae07 Mon Sep 17 00:00:00 2001 From: yaoyuhao Date: Tue, 13 Aug 2024 17:12:18 +0800 Subject: [PATCH] gx --- src/view/sy_map.vue | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/src/view/sy_map.vue b/src/view/sy_map.vue index 69aae93..7f7614e 100644 --- a/src/view/sy_map.vue +++ b/src/view/sy_map.vue @@ -1633,16 +1633,6 @@ const changeRs2 = (id) => { // } }; //----------资源要素------------ -//判断数组中是否包含某个字符 -const removeCharFromArray = (arr, charToRemove) => { - // 如果数组包含该字符,则过滤掉它 - if (arr.includes(charToRemove)) { - return arr.filter((ch) => ch !== charToRemove); - } else { - arr.push(charToRemove); - return arr; - } -}; const changeys = (name) => { if (yaosuList.value.includes(name)) { yaosuList.value = yaosuList.value.filter((ch) => ch !== name); @@ -1659,7 +1649,10 @@ const changeys = (name) => { img=item.img } }); - getZyys(url, name,img); + if(name=='摄像头'){ + getZyys(url, name,img); + } + } }; const getZyys = (url, name,img) => {