|
|
@ -37,7 +37,7 @@ export default{ |
|
|
|
displayAreaWidth: +arr[0], |
|
|
|
displayAreaHeight: +arr[1] |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
this.editDialog = { |
|
|
|
visible: showDialog == false ? false : true, |
|
|
|
mode: "toDevice", |
|
|
@ -80,16 +80,16 @@ export default{ |
|
|
|
let data = { content: content, deviceId: this.selectedDevice.iotDeviceId } |
|
|
|
|
|
|
|
if (IS_TESTING) { |
|
|
|
this.saveLog(content); |
|
|
|
// this.saveLog(content);
|
|
|
|
this.____getDeviceInfo(); |
|
|
|
loading.close() |
|
|
|
|
|
|
|
} else { |
|
|
|
publishToBoard(data).then(res => { |
|
|
|
this.saveLog(content); |
|
|
|
// this.saveLog(content);
|
|
|
|
this.____getDeviceInfo(); |
|
|
|
}).catch(err=>{ |
|
|
|
|
|
|
|
|
|
|
|
}).finally(()=>{ |
|
|
|
loading.close() |
|
|
|
}); |
|
|
@ -138,4 +138,4 @@ export default{ |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|