From e152ce08ca6c6e95180933c82e612cfb233a6511 Mon Sep 17 00:00:00 2001 From: chenjinsong <523037378@qq.com> Date: Thu, 2 Sep 2021 18:23:47 +0800 Subject: [PATCH] =?UTF-8?q?NEZ-969=20fix:=20=E4=BF=AE=E5=A4=8Dlocation?= =?UTF-8?q?=E4=BC=A0=E5=8F=82=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/common/rightBox/asset/assetBox.vue | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/nezha-fronted/src/components/common/rightBox/asset/assetBox.vue b/nezha-fronted/src/components/common/rightBox/asset/assetBox.vue index 499213081..2bd65da57 100644 --- a/nezha-fronted/src/components/common/rightBox/asset/assetBox.vue +++ b/nezha-fronted/src/components/common/rightBox/asset/assetBox.vue @@ -527,15 +527,14 @@ export default { this.showAllTalonOption = true }, setLocationData ({ cabinet, dc, u }) { - if (cabinet) { - this.editAsset.cabinetId = cabinet.id - } - if (dc) { - this.editAsset.dcId = dc.id - } + this.editAsset.cabinetId = cabinet ? cabinet.id : '' + this.editAsset.dcId = dc ? dc.id : '' if (u) { this.editAsset.cabinetStart = u[0] this.editAsset.cabinetEnd = u[1] + } else { + this.editAsset.cabinetStart = '' + this.editAsset.cabinetEnd = '' } }, removeLabel (label) {