From 59f72ec85b12a342abb5a6c408df03316505c115 Mon Sep 17 00:00:00 2001 From: dataeaseShu Date: Wed, 13 Nov 2024 15:25:21 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=9F=A5=E8=AF=A2=E7=BB=84=E4=BB=B6):=20?= =?UTF-8?q?=E6=97=A5=E6=9C=9F=E7=B1=BB=E5=9E=8B=E6=A0=A1=E9=AA=8C=EF=BC=8C?= =?UTF-8?q?=E6=97=A5=E6=9C=9F=E6=A0=BC=E5=BC=8F=E4=B8=8D=E4=B8=80=E8=87=B4?= =?UTF-8?q?=EF=BC=8C=E6=97=A0=E6=B3=95=E5=88=9B=E5=BB=BA=E6=9F=A5=E8=AF=A2?= =?UTF-8?q?=E6=9D=A1=E4=BB=B6=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../v-query/QueryConditionConfiguration.vue | 10 ++++++++-- 1 file changed, 8 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 b1c4c22d5a..8fc8699127 100644 --- a/core/core-frontend/src/custom-component/v-query/QueryConditionConfiguration.vue +++ b/core/core-frontend/src/custom-component/v-query/QueryConditionConfiguration.vue @@ -266,11 +266,14 @@ const showTypeError = computed(() => { ele => checkId === ele.id ) if (!field) return false - if (displayTypeField === null) { + if (displayTypeField === null && Array.isArray(field.type)) { displayTypeField = field return false } if (displayTypeField?.deType === field?.deType && displayTypeField?.deType === 1) { + if (!Array.isArray(field.type)) { + return false + } if (!displayTypeField.type?.length && !field.type?.length) { return false } @@ -1243,11 +1246,14 @@ const validate = () => { itx => checkId === itx.id ) if (!field) return false - if (displayTypeField === null) { + if (displayTypeField === null && Array.isArray(field.type)) { displayTypeField = field return false } if (displayTypeField?.deType === field?.deType && displayTypeField?.deType === 1) { + if (!Array.isArray(field.type)) { + return false + } if (!displayTypeField.type?.length && !field.type?.length) { return false }