From 3a4d2d06203be922005c85763eeb887855796a4e Mon Sep 17 00:00:00 2001 From: dataeaseShu Date: Mon, 28 Oct 2024 11:58:13 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=9F=A5=E8=AF=A2=E7=BB=84=E4=BB=B6):=20?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E7=BB=84=E4=BB=B6=E7=BA=A7=E8=81=94=E7=9A=84?= =?UTF-8?q?=E7=BA=A7=E8=81=94=E7=8A=B6=E6=80=81=E4=B8=8D=E8=83=BD=E9=87=8D?= =?UTF-8?q?=E7=BD=AE=20#12885?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core-frontend/src/custom-component/v-query/Component.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/core-frontend/src/custom-component/v-query/Component.vue b/core/core-frontend/src/custom-component/v-query/Component.vue index 15154a9894..a7495f583a 100644 --- a/core/core-frontend/src/custom-component/v-query/Component.vue +++ b/core/core-frontend/src/custom-component/v-query/Component.vue @@ -459,10 +459,10 @@ const resetData = () => { ;(props.element.cascade || []).forEach(ele => { ele.forEach(item => { const comId = item.datasetId.split('--')[1] - if (next.id === comId && ![null, undefined].includes(next.selectValue)) { + if (next.id === comId) { item.currentSelectValue = Array.isArray(next.selectValue) ? next.selectValue - : [next.selectValue] + : [next.selectValue].map(itx => ![null, undefined].includes(itx)) useEmitt().emitter.emit(`${item.datasetId.split('--')[1]}-select`) } })