mirror of
https://github.com/Shchoholiev/shopping-assistant-web-client.git
synced 2025-04-26 08:17:20 +00:00
fix bags
This commit is contained in:
parent
7b7c707cca
commit
b1ac3b5f3c
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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){
|
||||||
|
|
||||||
|
@ -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}");
|
||||||
|
Loading…
Reference in New Issue
Block a user