diff --git a/src/view/sy_map.vue b/src/view/sy_map.vue index 5aff24a..fdc54a0 100644 --- a/src/view/sy_map.vue +++ b/src/view/sy_map.vue @@ -1637,16 +1637,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); @@ -1663,7 +1653,10 @@ const changeys = (name) => { img = item.img; } }); - getZyys(url, name, img); + if(name=='摄像头'){ + getZyys(url, name,img); + } + } }; const getZyys = (url, name, img) => {