This commit is contained in:
duanxiaohai 2024-08-14 09:05:13 +08:00
commit d8770a92cb
1 changed files with 4 additions and 11 deletions

View File

@ -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) => { const changeys = (name) => {
if (yaosuList.value.includes(name)) { if (yaosuList.value.includes(name)) {
yaosuList.value = yaosuList.value.filter((ch) => ch !== name); yaosuList.value = yaosuList.value.filter((ch) => ch !== name);
@ -1663,7 +1653,10 @@ const changeys = (name) => {
img = item.img; img = item.img;
} }
}); });
getZyys(url, name, img); if(name=='摄像头'){
getZyys(url, name,img);
}
} }
}; };
const getZyys = (url, name, img) => { const getZyys = (url, name, img) => {