mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-19 01:04:25 +08:00
code refactor
This commit is contained in:
@@ -309,7 +309,9 @@ function open(options?: { id?: string, currentAccount?: Account, category?: numb
|
|||||||
showState.value = false;
|
showState.value = false;
|
||||||
|
|
||||||
if (!error.processed) {
|
if (!error.processed) {
|
||||||
snackbar.value?.showError(error);
|
if (rejectFunc) {
|
||||||
|
rejectFunc(error);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -167,7 +167,9 @@ function open(options: { id?: string; parentId?: string; type?: CategoryType; cu
|
|||||||
showState.value = false;
|
showState.value = false;
|
||||||
|
|
||||||
if (!error.processed) {
|
if (!error.processed) {
|
||||||
snackbar.value?.showError(error);
|
if (rejectFunc) {
|
||||||
|
rejectFunc(error);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else if (options.parentId) {
|
} else if (options.parentId) {
|
||||||
|
|||||||
Reference in New Issue
Block a user