From e825dcdc3da829fe0f705dd532a07101a7ca88c7 Mon Sep 17 00:00:00 2001 From: dataeaseShu Date: Thu, 13 Jun 2024 11:13:26 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=9F=A5=E8=AF=A2=E7=BB=84=E4=BB=B6):=20?= =?UTF-8?q?=E8=BF=87=E6=BB=A4=E7=BB=84=E4=BB=B6=E4=BB=AA=E8=A1=A8=E6=9D=BF?= =?UTF-8?q?=E5=A4=9A=E4=B8=AA=E8=A7=86=E5=9B=BE=E4=BD=BF=E7=94=A8=E5=8F=82?= =?UTF-8?q?=E6=95=B0=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../custom-component/v-query/QueryConditionConfiguration.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/core-frontend/src/custom-component/v-query/QueryConditionConfiguration.vue b/core/core-frontend/src/custom-component/v-query/QueryConditionConfiguration.vue index 57ed61c35b..b5f4372e8d 100644 --- a/core/core-frontend/src/custom-component/v-query/QueryConditionConfiguration.vue +++ b/core/core-frontend/src/custom-component/v-query/QueryConditionConfiguration.vue @@ -130,9 +130,10 @@ const showTypeError = computed(() => { if (!curComponent.value) return false if (!curComponent.value.checkedFields?.length) return false if (!fields.value?.length) return false - if (!!curComponent.value.parameters.length) { + if (!!curComponent.value.parameters.length && isTimeParameter.value) { const timeArr = curComponent.value.parameters.map(ele => ele.type[1]) - if (timeArr.length !== new Set(timeArr).size) { + const [typeOne] = timeArr + if (timeArr.some(ele => ele !== typeOne)) { return true } }