Skip to content

Commit 5c11c2d

Browse files
committed
refactor: 改用 QueryAsync 方法
1 parent 5d2ed31 commit 5c11c2d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/BootstrapBlazor/Components/Table/Table.razor.Toolbar.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -712,7 +712,7 @@ protected async Task SaveAsync(EditContext context, ItemChangedType changedType)
712712
}
713713
else
714714
{
715-
await QueryData();
715+
await QueryAsync();
716716
}
717717
}
718718

src/BootstrapBlazor/Components/Table/Table.razor.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1293,7 +1293,7 @@ protected async Task LoopQueryAsync()
12931293
await Task.Delay(AutoRefreshInterval, AutoRefreshCancelTokenSource.Token);
12941294

12951295
// 不调用 QueryAsync 防止出现 Loading 动画 保持屏幕静止
1296-
await QueryData();
1296+
await QueryAsync();
12971297
StateHasChanged();
12981298
}
12991299
catch (TaskCanceledException) { }
@@ -1516,7 +1516,7 @@ public async Task ResetSortAsync()
15161516
SortName = null;
15171517
SortOrder = SortOrder.Unset;
15181518

1519-
await QueryData();
1519+
await QueryAsync();
15201520
}
15211521

15221522
private bool GetAddButtonStatus() => DisableAddButtonCallback?.Invoke(SelectedRows) ?? false;

0 commit comments

Comments
 (0)