处理新建服务后,没做任何配置,显示上一个打开过的服务配置问题
This commit is contained in:
@@ -391,6 +391,9 @@ export default {
|
||||
this.deviceData = await this.$api.GET_DEVICE(this.serverData.id)
|
||||
if (this.deviceData.length > 0) {
|
||||
this.getDeviceConfigure(this.deviceActiveStatus)
|
||||
} else {
|
||||
this.devicePointData = [] // 如果没有设备,防止显示上一次打开的设备数据先清空数据
|
||||
this.defaultDeviceName = ''
|
||||
}
|
||||
} catch (e) {
|
||||
console.log(e)
|
||||
@@ -477,7 +480,7 @@ export default {
|
||||
this.formOptions.saveLoading = false
|
||||
return false
|
||||
}
|
||||
assign(row, {id:this.devicePointData.length + 1, showBindButton:true, showCopyButton:true, showRemoveButton:true, showSendButton:true, })
|
||||
assign(row, { id: this.devicePointData.length + 1, showBindButton: true, showCopyButton: true, showRemoveButton: true, showSendButton: true })
|
||||
this.devicePointData.push(row)
|
||||
done()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user