code refactor

This commit is contained in:
MaysWind
2025-02-09 15:58:55 +08:00
parent 596787b998
commit f2c043a299
6 changed files with 23 additions and 23 deletions
+2 -2
View File
@@ -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);