fix: dialog state not reset

This commit is contained in:
Methapon2001 2024-08-06 09:37:22 +07:00
parent a57171aea3
commit fcee41eaf9

View file

@ -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()) {