* fix redirect to login for admin page fix logout * add admin part url Co-authored-by: cedri <cedri@BAS>
15 lines
337 B
Plaintext
15 lines
337 B
Plaintext
@page "/logout"
|
|
@inject IJSRuntime JSRuntime
|
|
@inject HttpClient HttpClient
|
|
@inherits BlazorAdmin.Helpers.BlazorComponent
|
|
|
|
@code {
|
|
|
|
protected override async Task OnInitializedAsync()
|
|
{
|
|
await HttpClient.PostAsync("User/Logout", null);
|
|
await new Route(JSRuntime).RouteOutside("/Identity/Account/Login");
|
|
}
|
|
|
|
}
|