fix 修改异步为同步

This commit is contained in:
zyxucp
2024-04-07 11:03:18 +08:00
parent 4e93efe821
commit 9a939eba5a

View File

@@ -51,7 +51,7 @@ namespace AntSK.Pages.ChatPage.Components
protected override async Task OnInitializedAsync()
{
await base.OnInitializedAsync();
await LoadData();
LoadData();
var msgs = await _localStorage.GetItemAsync<List<MessageInfo>>("msgs");
if (msgs != null && msgs.Count > 0)
{
@@ -61,10 +61,10 @@ namespace AntSK.Pages.ChatPage.Components
protected override async Task OnParametersSetAsync()
{
await LoadData();
LoadData();
}
private async Task LoadData()
private void LoadData()
{
app = _apps_Repositories.GetFirst(p => p.Id == AppId);
}