From 2204cad555b588fb95abe65629b0a837c076bea5 Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Thu, 28 Dec 2023 10:21:47 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=B8=8B=E6=8B=89=E8=BF=87=E6=BB=A4?= =?UTF-8?q?=E5=99=A8=E8=AE=BE=E7=BD=AE=E9=A6=96=E9=A1=B9=E5=92=8C=E5=BF=85?= =?UTF-8?q?=E5=A1=AB=E5=88=A0=E9=99=A4=E8=BF=87=E6=BB=A4=E5=99=A8=E8=A7=86?= =?UTF-8?q?=E5=9B=BE=E6=9C=AA=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/frontend/src/components/widget/deWidget/DeSelect.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/core/frontend/src/components/widget/deWidget/DeSelect.vue b/core/frontend/src/components/widget/deWidget/DeSelect.vue index 112092cc45..a4795c5a66 100644 --- a/core/frontend/src/components/widget/deWidget/DeSelect.vue +++ b/core/frontend/src/components/widget/deWidget/DeSelect.vue @@ -362,14 +362,16 @@ export default { resetDefaultValue(ele) { const id = ele.id const eleVal = ele.options.value.toString() - if (this.inDraw && this.manualModify && this.element.id === id && this.value.toString() !== eleVal && this.defaultValueStr === eleVal) { + if (this.inDraw && this.manualModify && this.element.id === id) { if (this.selectFirst) { this.fillFirstValue() this.firstChange(this.value) return } - this.value = this.fillValueDerfault() - this.changeValue(this.value) + if (this.value.toString() !== eleVal && this.defaultValueStr === eleVal) { + this.value = this.fillValueDerfault() + this.changeValue(this.value) + } } }, onBlur() {