fast(实时状态): 解决初始化离线在线错误
This commit is contained in:
parent
11c5f63e01
commit
d62f1bddde
|
@ -462,6 +462,11 @@ export default {
|
||||||
e["deviceState"] ||
|
e["deviceState"] ||
|
||||||
(e["switch"] !== null && e["switch"] !== undefined)
|
(e["switch"] !== null && e["switch"] !== undefined)
|
||||||
) {
|
) {
|
||||||
|
if(e["switch"] == "1"){
|
||||||
|
e["switch"] = 1
|
||||||
|
}else if(e["switch"] == "0"){
|
||||||
|
e["switch"] = 0
|
||||||
|
}
|
||||||
this.handleDeviceInfo(e);
|
this.handleDeviceInfo(e);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue