From d72dc33e6693adb486ab1f748aef4f52ec66f0e4 Mon Sep 17 00:00:00 2001 From: dataeaseShu Date: Thu, 14 Nov 2024 09:43:02 +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=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../v-query/QueryConditionConfiguration.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 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 8fc8699127..4df9f7b376 100644 --- a/core/core-frontend/src/custom-component/v-query/QueryConditionConfiguration.vue +++ b/core/core-frontend/src/custom-component/v-query/QueryConditionConfiguration.vue @@ -266,12 +266,12 @@ const showTypeError = computed(() => { ele => checkId === ele.id ) if (!field) return false - if (displayTypeField === null && Array.isArray(field.type)) { + if (displayTypeField === null) { displayTypeField = field return false } if (displayTypeField?.deType === field?.deType && displayTypeField?.deType === 1) { - if (!Array.isArray(field.type)) { + if (!Array.isArray(field.type) || !Array.isArray(displayTypeField.type)) { return false } if (!displayTypeField.type?.length && !field.type?.length) { @@ -1246,12 +1246,12 @@ const validate = () => { itx => checkId === itx.id ) if (!field) return false - if (displayTypeField === null && Array.isArray(field.type)) { + if (displayTypeField === null) { displayTypeField = field return false } if (displayTypeField?.deType === field?.deType && displayTypeField?.deType === 1) { - if (!Array.isArray(field.type)) { + if (!Array.isArray(field.type) || !Array.isArray(displayTypeField.type)) { return false } if (!displayTypeField.type?.length && !field.type?.length) {