This commit is contained in:
linfso 2024-06-19 17:22:53 +08:00
parent fdb93fa899
commit 5abbeceec8

View File

@ -132,7 +132,10 @@ export default {
let str=postData.whiteDeviceIds;
str = str.replace(/[ ]/g,"")
str = str.replace(/[\r\n]/g,"");
let wdis=str.split(",");
let wdisTmp=str.split(",");
const wdis = wdisTmp.filter(el => {
return el != null && el != '';
});
if(wdis&&wdis.length>0) {
postData.whiteDeviceIds=wdis;
}