mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-19 17:24:26 +08:00
code refactor
This commit is contained in:
@@ -275,7 +275,7 @@ function init(): void {
|
||||
});
|
||||
}
|
||||
|
||||
function reload(done: (() => void) | null): void {
|
||||
function reload(done?: () => void): void {
|
||||
if (sortable.value) {
|
||||
done?.();
|
||||
return;
|
||||
@@ -418,7 +418,7 @@ function onSort(event: { el: { id: string }; from: number; to: number }): void {
|
||||
|
||||
function onPageAfterIn(): void {
|
||||
if (accountsStore.accountListStateInvalid && !loading.value) {
|
||||
reload(null);
|
||||
reload();
|
||||
}
|
||||
|
||||
routeBackOnError(props.f7router, loadingError);
|
||||
|
||||
Reference in New Issue
Block a user