From 3e5b929d2c03b6267675ed1b8fd271e88b7fe4c7 Mon Sep 17 00:00:00 2001 From: zhangyu Date: Thu, 16 Feb 2023 15:12:18 +0800 Subject: [PATCH] =?UTF-8?q?NEZ-2574=20fix=EF=BC=9AAsset=20TELNET=20?= =?UTF-8?q?=E5=9B=9E=E6=98=BE=E4=B8=8D=E6=AD=A3=E7=A1=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/common/rightBox/asset/assetBox.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nezha-fronted/src/components/common/rightBox/asset/assetBox.vue b/nezha-fronted/src/components/common/rightBox/asset/assetBox.vue index e6b605650..1e4718552 100644 --- a/nezha-fronted/src/components/common/rightBox/asset/assetBox.vue +++ b/nezha-fronted/src/components/common/rightBox/asset/assetBox.vue @@ -460,9 +460,9 @@ export default { } else { editAsset.showSSH = false } - if (!editAsset.authType && this.editAsset.authUsername) { + if (!editAsset.authType && editAsset.authUsername) { editAsset.showTelnet = true - } else if (!editAsset.authType && !this.editAsset.authUsername) { + } else if (!editAsset.authType && !editAsset.authUsername) { editAsset.showTelnet = false } if (editAsset.type.snmpEnable === 1 && editAsset.snmpCredentialId) { @@ -471,7 +471,7 @@ export default { editAsset.showSnmp = false } this.editAsset = editAsset - this.editAsset.brandAndModel = [this.editAsset.brand.id, this.editAsset.model.id] + this.editAsset.brandAndModel = [editAsset.brand.id, editAsset.model.id] this.editAsset.stateId = n.state ? n.state.id : 2 this.editAsset.typeId = n.type ? n.type.id : '' this.$nextTick(() => {