From aac95d17e41f5057445f36c4d00c5acaca4d6a56 Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Thu, 24 Jul 2025 18:01:28 +0700 Subject: [PATCH] fix --- .../02_organization/components/StructureOrgMain.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/modules/02_organization/components/StructureOrgMain.vue b/src/modules/02_organization/components/StructureOrgMain.vue index 746a25d21..0cd3704bc 100644 --- a/src/modules/02_organization/components/StructureOrgMain.vue +++ b/src/modules/02_organization/components/StructureOrgMain.vue @@ -199,8 +199,10 @@ watch( ? store.draftId : store.historyId; - fetchOrgChart(); - fetchAgencyData(rootOrgID.value); + if (rootOrgID.value) { + fetchAgencyData(rootOrgID.value); + fetchOrgChart(); + } } ); @@ -258,7 +260,7 @@ onBeforeMount(() => { @clear="() => (agencyId = '')" @update:model-value="onSelectAgency" @filter="(inputValue:any,doneFn:Function) => filterOption(inputValue, doneFn) " - style="width: 400px;" + style="width: 400px" >