refactor: check value different
This commit is contained in:
parent
186d0ee726
commit
1fc44abdb4
1 changed files with 1 additions and 2 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue