From 6b07136d89415b1fb02b66ca2fb29f0cc98b220b Mon Sep 17 00:00:00 2001 From: zhangyu Date: Mon, 26 Dec 2022 14:22:25 +0800 Subject: [PATCH] =?UTF-8?q?NEZ-2478=20fix=EF=BC=9AAsset=20attributes=20?= =?UTF-8?q?=E5=88=87=E6=8D=A2=E6=90=9C=E7=B4=A2=E9=87=8D=E7=BD=AE=E5=8F=82?= =?UTF-8?q?=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nezha-fronted/src/components/common/rightBox/assetMetaBox.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nezha-fronted/src/components/common/rightBox/assetMetaBox.vue b/nezha-fronted/src/components/common/rightBox/assetMetaBox.vue index e6ade0d9d..f0d8561d5 100644 --- a/nezha-fronted/src/components/common/rightBox/assetMetaBox.vue +++ b/nezha-fronted/src/components/common/rightBox/assetMetaBox.vue @@ -263,6 +263,7 @@ export default { }, methods: { switchSearch (value) { + let flag = true if (value == 0) { this.typeData.forEach(t => { t.disabled = false @@ -271,6 +272,7 @@ export default { if (this.editAssetMeta.type !== 'RADIO' && this.editAssetMeta.type !== 'CHECKBOX' && this.editAssetMeta.type !== 'SELECT') { + flag = false this.editAssetMeta.type = 'RADIO' } this.typeData.forEach(t => { @@ -286,7 +288,7 @@ export default { t.disabled = false }) } - this.selectType(this.editAssetMeta.type, false) + this.selectType(this.editAssetMeta.type, flag) }, clickOutside () { this.esc(false)