mirror of
https://github.com/AIDotNet/AntSK.git
synced 2026-02-17 22:10:14 +08:00
fix 修改异步
This commit is contained in:
@@ -186,9 +186,11 @@ namespace AntSK.Pages.ChatPage.Components
|
||||
}
|
||||
|
||||
Sendding = true;
|
||||
await SendAsync(_messageInput, filePath);
|
||||
_messageInput = "";
|
||||
Sendding = false;
|
||||
Task.Run(() =>
|
||||
{
|
||||
SendAsync(_messageInput, filePath);
|
||||
});
|
||||
|
||||
}
|
||||
catch (System.Exception ex)
|
||||
{
|
||||
@@ -270,7 +272,8 @@ namespace AntSK.Pages.ChatPage.Components
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
_messageInput = "";
|
||||
Sendding = false;
|
||||
return await Task.FromResult(true);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user