From 20dc733332448038b27f7192b55c58dd153b4839 Mon Sep 17 00:00:00 2001 From: wu <248489804@qq.com> Date: Sun, 21 Aug 2022 00:54:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=84=E7=90=86=E6=96=B0=E5=BB=BA=E6=9C=8D?= =?UTF-8?q?=E5=8A=A1=E5=90=8E=EF=BC=8C=E6=B2=A1=E5=81=9A=E4=BB=BB=E4=BD=95?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=EF=BC=8C=E6=98=BE=E7=A4=BA=E4=B8=8A=E4=B8=80?= =?UTF-8?q?=E4=B8=AA=E6=89=93=E5=BC=80=E8=BF=87=E7=9A=84=E6=9C=8D=E5=8A=A1?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/edgeServer/edgeServerConfigure/device.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/views/edgeServer/edgeServerConfigure/device.vue b/src/views/edgeServer/edgeServerConfigure/device.vue index 24d2479..38506d1 100644 --- a/src/views/edgeServer/edgeServerConfigure/device.vue +++ b/src/views/edgeServer/edgeServerConfigure/device.vue @@ -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() }