From 44f27bf2ea01154d49a717bdce5074e2f88e15ea Mon Sep 17 00:00:00 2001 From: puriphatt Date: Fri, 1 Nov 2024 17:35:36 +0700 Subject: [PATCH] fix: get quotation attachment on edit mode --- src/pages/05_quotation/QuotationForm.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/pages/05_quotation/QuotationForm.vue b/src/pages/05_quotation/QuotationForm.vue index aebd3531..cddde6ae 100644 --- a/src/pages/05_quotation/QuotationForm.vue +++ b/src/pages/05_quotation/QuotationForm.vue @@ -848,7 +848,10 @@ onMounted(async () => { if (locale.value === 'tha') optionStore.globalOption = rawOption.tha; await fetchStatus(); - await getAttachment(); + + if (quotationFormState.value.mode === 'edit') { + await getAttachment(); + } pageState.isLoaded = true; }); @@ -1369,6 +1372,7 @@ const view = ref(View.Quotation);