This commit is contained in:
––AsTroLog 2023-11-18 15:08:09 +00:00
parent 7b7c707cca
commit b1ac3b5f3c
3 changed files with 5 additions and 4 deletions

View File

@ -128,12 +128,11 @@
protected override async Task OnAfterRenderAsync(bool firstRender) protected override async Task OnAfterRenderAsync(bool firstRender)
{ {
await JSRuntime.InvokeVoidAsync("scrollToBottom", chatMessageRef); await JSRuntime.InvokeVoidAsync("scrollToBottom", chatMessageRef);
await JSRuntime.InvokeVoidAsync("scrollToBottom", chatMessageRef);
await JSRuntime.InvokeVoidAsync("scrollToBottom", chatMessageRef);
} }
private void ClickOption(string item) { private void ClickOption(string item)
{
inputValue = item; inputValue = item;
} }

View File

@ -202,7 +202,7 @@ public partial class Chat : ComponentBase
Messages[lengt-1].Text += Message.Text; Messages[lengt-1].Text += Message.Text;
} }
await InvokeAsync(StateHasChanged); StateHasChanged();
}else if(sseEvent.Event == SearchEventType.Product){ }else if(sseEvent.Event == SearchEventType.Product){

View File

@ -81,6 +81,8 @@ namespace ShoppingAssistantWebClient.Web.Shared
var response = await _apiClient.QueryAsync(request); var response = await _apiClient.QueryAsync(request);
await LoadMenus(currentPage, pageSize); await LoadMenus(currentPage, pageSize);
var url = $"/";
Navigation.NavigateTo(url);
}catch(Exception ex){ }catch(Exception ex){
Console.WriteLine($"Error : {ex.Message}"); Console.WriteLine($"Error : {ex.Message}");