refactor: check value different

This commit is contained in:
Thanaphon Frappet 2025-01-07 11:04:33 +07:00
parent 186d0ee726
commit 1fc44abdb4

View file

@ -3825,7 +3825,6 @@ const emptyCreateDialog = ref(false);
"
:close="
() => {
customerFormState.drawerModal = false;
resetScrollBar('customer-form-content');
}
"
@ -3847,7 +3846,7 @@ const emptyCreateDialog = ref(false);
() => {
if (customerFormStore.isFormDataDifferent()) {
customerConfirmUnsave();
return false;
return true;
} else {
fetchListCustomer();
customerFormState.branchIndex = -1;