From d4d89c5b15c2ffb360de2d32856b544b2d21286a Mon Sep 17 00:00:00 2001 From: dataeaseShu Date: Wed, 17 Dec 2025 10:43:37 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E4=BB=AA=E8=A1=A8=E6=9D=BF):=20=E4=B8=8B?= =?UTF-8?q?=E6=8B=89=E6=A0=91=E6=B2=A1=E6=9C=89=E7=9B=B8=E5=BA=94=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core-frontend/src/custom-component/v-query/Tree.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/core/core-frontend/src/custom-component/v-query/Tree.vue b/core/core-frontend/src/custom-component/v-query/Tree.vue index f4a35f8024..6cec73106c 100644 --- a/core/core-frontend/src/custom-component/v-query/Tree.vue +++ b/core/core-frontend/src/custom-component/v-query/Tree.vue @@ -124,7 +124,7 @@ watch( } ) -const init = () => { +const init = (fromMount = false) => { loading.value = true const { defaultValueCheck, multiple: plus, defaultValue } = config.value if (defaultValueCheck) { @@ -140,6 +140,7 @@ const init = () => { oldId = config.value.treeFieldList?.map(ele => ele.id).join('-') multiple.value = config.value.multiple }) + if (getCascadeFieldId().length && fromMount) return getTreeOption() } @@ -168,7 +169,7 @@ watch( onMounted(() => { setTimeout(() => { fromSelect = true - init() + init(true) }, 0) }) @@ -279,6 +280,7 @@ const getCascadeFieldId = () => { }) return filter } + let fromSelect = false const getOptionFromCascade = () => { fromSelect = true