md
This commit is contained in:
parent
fdb93fa899
commit
5abbeceec8
@ -132,7 +132,10 @@ export default {
|
|||||||
let str=postData.whiteDeviceIds;
|
let str=postData.whiteDeviceIds;
|
||||||
str = str.replace(/[ ]/g,"")
|
str = str.replace(/[ ]/g,"")
|
||||||
str = str.replace(/[\r\n]/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) {
|
if(wdis&&wdis.length>0) {
|
||||||
postData.whiteDeviceIds=wdis;
|
postData.whiteDeviceIds=wdis;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user