This commit is contained in:
姚宇浩 2024-08-13 17:12:18 +08:00
parent 10689020d1
commit 46a111f01f
1 changed files with 4 additions and 11 deletions

View File

@ -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) => { 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);
@ -1659,7 +1649,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) => {