code refactor

This commit is contained in:
MaysWind
2025-02-03 21:27:08 +08:00
parent ff6a558e96
commit 9a6148fe6e
2 changed files with 6 additions and 2 deletions
@@ -309,7 +309,9 @@ function open(options?: { id?: string, currentAccount?: Account, category?: numb
showState.value = false;
if (!error.processed) {
snackbar.value?.showError(error);
if (rejectFunc) {
rejectFunc(error);
}
}
});
} else {
@@ -167,7 +167,9 @@ function open(options: { id?: string; parentId?: string; type?: CategoryType; cu
showState.value = false;
if (!error.processed) {
snackbar.value?.showError(error);
if (rejectFunc) {
rejectFunc(error);
}
}
});
} else if (options.parentId) {