Fix reload apgina

This commit is contained in:
Samuele Locatelli
2022-11-03 12:28:06 +01:00
parent 2608395e5b
commit 79c73db726
2 changed files with 8 additions and 5 deletions
+3 -3
View File
@@ -70,9 +70,9 @@
{
await Task.Delay(1);
await MDService.FlushRedisCache();
await JSRuntime.InvokeAsync<bool>("location.reload");
// rimando a home
//NavManager.NavigateTo("", true);
await Task.Delay(1);
// rimando a pagina corrente
NavManager.NavigateTo(NavManager.Uri, true);
}
[Inject]
+5 -2
View File
@@ -168,12 +168,15 @@ namespace MP.SPEC.Components
{
currFluxLogDto = null;
await Task.Delay(1);
await JSRuntime.InvokeAsync<bool>("location.reload");
// rimando a pagina corrente
NavManager.NavigateTo(NavManager.Uri, true);
}
}
[Inject]
private NavigationManager NavManager { get; set; } = null!;
protected override async Task OnInitializedAsync()
{
ListStati = await MDService.AnagStatiComm();