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