From 0c48b2e9990a05d3ac399b7daea764608259c6aa Mon Sep 17 00:00:00 2001 From: dataeaseShu Date: Thu, 19 Dec 2024 09:57:00 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=9F=A5=E8=AF=A2=E7=BB=84=E4=BB=B6):=20?= =?UTF-8?q?=E4=B8=8B=E6=8B=89=E6=A0=91=E8=AE=BE=E7=BD=AE=E5=A5=BD=E5=B1=82?= =?UTF-8?q?=E7=BA=A7=E5=90=8E=EF=BC=8C=E5=8B=BE=E9=80=89=E5=85=B6=E4=BB=96?= =?UTF-8?q?=E5=9B=BE=E8=A1=A8=E5=90=8E=E5=B1=82=E7=BA=A7=E5=B0=B1=E4=BC=9A?= =?UTF-8?q?=E6=B8=85=E7=A9=BA?= 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, 5 insertions(+) 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 256795001d..6b717a6f94 100644 --- a/core/core-frontend/src/custom-component/v-query/QueryConditionConfiguration.vue +++ b/core/core-frontend/src/custom-component/v-query/QueryConditionConfiguration.vue @@ -360,9 +360,14 @@ const setTreeDefault = () => { if (!!curComponent.value.treeFieldList.length) { const [fir] = curComponent.value.treeFieldList if (fir && fir.field !== checkId) { + const [top] = curComponent.value.treeFieldList || [] + if (top?.id === fieldObj.id) return + curComponent.value.treeFieldList = [fieldObj] } } else if (fieldObj) { + const [top] = curComponent.value.treeFieldList || [] + if (top?.id === fieldObj.id) return curComponent.value.treeFieldList = [fieldObj] } }