refactor: undo not work
This commit is contained in:
parent
13974ff313
commit
4fa1a2ca26
1 changed files with 4 additions and 2 deletions
|
|
@ -462,6 +462,7 @@ function employeeConfirmUnsave(close = true) {
|
|||
employeeFormStore.resetFormDataEmployee();
|
||||
employeeFormState.value.editReadonly = true;
|
||||
employeeFormState.value.dialogModal = !close;
|
||||
employeeFormState.value.drawerModal = !close;
|
||||
},
|
||||
cancel: () => {},
|
||||
});
|
||||
|
|
@ -2760,10 +2761,11 @@ watch(
|
|||
@undo="
|
||||
(index) => {
|
||||
if (
|
||||
currentFromDataEmployee.employeeCheckup?.[index].statusSave
|
||||
currentFromDataEmployee.employeeCheckup?.[index]
|
||||
.statusSave === false
|
||||
) {
|
||||
currentFromDataEmployee.employeeCheckup[index].statusSave =
|
||||
false;
|
||||
true;
|
||||
employeeFormStore.resetFormDataEmployee();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue