From fb956acacf3aebd9b87782a44991c7842031d47b Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Mon, 25 Dec 2023 16:18:16 +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=E9=A6=96=E9=A1=B9=E4=BC=9A=E5=BD=B1=E5=93=8D=E5=85=B6?= =?UTF-8?q?=E4=BB=96=E4=BB=AA=E8=A1=A8=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/frontend/src/components/widget/deWidget/DeSelect.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/core/frontend/src/components/widget/deWidget/DeSelect.vue b/core/frontend/src/components/widget/deWidget/DeSelect.vue index f25d14ec86..7bb1b44c11 100644 --- a/core/frontend/src/components/widget/deWidget/DeSelect.vue +++ b/core/frontend/src/components/widget/deWidget/DeSelect.vue @@ -98,7 +98,8 @@ export default { separator: ',', timeMachine: null, changeIndex: 0, - flag: uuid.v1() + flag: uuid.v1(), + hasDestroy: false } }, computed: { @@ -274,6 +275,7 @@ export default { beforeDestroy() { bus.$off('onScroll', this.onScroll) bus.$off('reset-default-value', this.resetDefaultValue) + this.hasDestroy = true }, methods: { selectOnScroll() { @@ -384,6 +386,9 @@ export default { } }, fillFirstSelected() { + if (this.hasDestroy) { + return + } if (this.selectFirst && this.data?.length) { this.fillFirstValue() this.$emit('filter-loaded', {