refactor: header undo
This commit is contained in:
parent
31f0aa3120
commit
5e7451010d
1 changed files with 6 additions and 2 deletions
|
|
@ -517,12 +517,16 @@ function customerConfirmUnsave(close = true) {
|
|||
actionText: t('ok'),
|
||||
persistent: true,
|
||||
message: t('form.warning.unsave'),
|
||||
|
||||
action: () => {
|
||||
customerFormStore.resetForm();
|
||||
customerFormState.value.readonly = true;
|
||||
|
||||
customerFormState.value.drawerModal = !close;
|
||||
customerFormState.value.dialogModal = !close;
|
||||
if (!customerFormState.value.drawerModal) {
|
||||
customerFormState.value.dialogModal = !close;
|
||||
} else {
|
||||
customerFormState.value.drawerModal = !close;
|
||||
}
|
||||
},
|
||||
cancel: () => {},
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue