From fcee41eaf9d8a198ad43ff22869441c45ecc953a Mon Sep 17 00:00:00 2001 From: Methapon2001 <61303214+Methapon2001@users.noreply.github.com> Date: Tue, 6 Aug 2024 09:37:22 +0700 Subject: [PATCH] fix: dialog state not reset --- src/pages/03_customer-management/MainPage.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pages/03_customer-management/MainPage.vue b/src/pages/03_customer-management/MainPage.vue index 708b966a..52e7b960 100644 --- a/src/pages/03_customer-management/MainPage.vue +++ b/src/pages/03_customer-management/MainPage.vue @@ -411,6 +411,7 @@ function customerConfirmUnsave() { action: () => { customerFormStore.resetForm(); customerFormState.value.editReadonly = true; + customerFormState.value.dialogModal = false; }, cancel: () => {}, }); @@ -1708,6 +1709,7 @@ function createCustomerForm(customerType: 'CORP' | 'PERS') { await fetchListCustomer(); } " + :close="() => (customerFormState.editReadonly = true)" :before-close=" () => { if (customerFormStore.isFormDataDifferent()) {