diff --git a/src/pages/01_branch-management/MainPage.vue b/src/pages/01_branch-management/MainPage.vue index d6501fe1..5c7f39f0 100644 --- a/src/pages/01_branch-management/MainPage.vue +++ b/src/pages/01_branch-management/MainPage.vue @@ -422,7 +422,6 @@ async function fetchBranchById(id: string) { const resAttachment = await branchStore.fetchListAttachment(res.id); if (resAttachment) { - currentAttachmentList.value = await Promise.all( resAttachment.map(async (v) => { return { @@ -782,7 +781,6 @@ async function onSubmit(submitSelectedItem?: boolean) { id: res.id, code: res.code, }; - formType.value = 'view'; } await fetchList({ tree: true, pageSize: 99999, withHead: true }); @@ -830,6 +828,8 @@ async function onSubmit(submitSelectedItem?: boolean) { }, }); } + + formType.value = 'view'; } const _stats = await branchStore.stats(); @@ -1702,6 +1702,7 @@ watch(currentHq, () => { +