fix: dialog state not reset
This commit is contained in:
parent
a57171aea3
commit
fcee41eaf9
1 changed files with 2 additions and 0 deletions
|
|
@ -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()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue