Skip to content

Commit

Permalink
add 延迟
Browse files Browse the repository at this point in the history
  • Loading branch information
xuzeyu91 committed Jul 1, 2024
1 parent 22d9909 commit 0dc7bfc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/AntSK/Pages/ChatPage/Components/ChatView.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ private async Task SendKms(string questions, ChatHistory history, Apps app, stri
{
rawContent.Append(content.ConvertToString());
info.Context = Markdown.ToHtml(rawContent.ToString());
//await Task.Delay(50);
await Task.Delay(30);
await InvokeAsync(StateHasChanged);
}
//全部处理完后再处理一次Markdown 处理代码高亮
Expand Down Expand Up @@ -367,7 +367,7 @@ private async Task SendChat(ChatHistory history, Apps app)
rawContent.Append(content.ConvertToString());
}
info.Context = Markdown.ToHtml(rawContent.ToString());
//await Task.Delay(50);
await Task.Delay(30);
await InvokeAsync(StateHasChanged);
}
//全部处理完后再处理一次Markdown 处理代码高亮
Expand Down

0 comments on commit 0dc7bfc

Please sign in to comment.