This commit is contained in:
parent
10689020d1
commit
46a111f01f
|
@ -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,8 +1649,11 @@ const changeys = (name) => {
|
||||||
img=item.img
|
img=item.img
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
if(name=='摄像头'){
|
||||||
getZyys(url, name,img);
|
getZyys(url, name,img);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
};
|
};
|
||||||
const getZyys = (url, name,img) => {
|
const getZyys = (url, name,img) => {
|
||||||
http.get(url).then((res) => {
|
http.get(url).then((res) => {
|
||||||
|
|
Loading…
Reference in New Issue