maliming
3 years ago
No known key found for this signature in database
GPG Key ID: A646B9CB645ECEA4
2 changed files with
10 additions and
5 deletions
-
modules/basic-theme/src/Volo.Abp.AspNetCore.Components.WebAssembly.BasicTheme/Themes/Basic/LoginDisplay.razor
-
modules/basic-theme/src/Volo.Abp.AspNetCore.Components.WebAssembly.BasicTheme/Themes/Basic/LoginDisplay.razor.cs
|
|
|
@ -1,15 +1,13 @@ |
|
|
|
@using Microsoft.Extensions.Localization |
|
|
|
@using Volo.Abp.Users |
|
|
|
@using Volo.Abp.MultiTenancy |
|
|
|
@using global::Localization.Resources.AbpUi |
|
|
|
@using Microsoft.Extensions.Options |
|
|
|
@using Volo.Abp.AspNetCore.Components.Server |
|
|
|
@inherits AbpComponentBase |
|
|
|
@inject ICurrentUser CurrentUser |
|
|
|
@inject ICurrentTenant CurrentTenant |
|
|
|
@inject IJSRuntime JsRuntime |
|
|
|
@inject NavigationManager Navigation |
|
|
|
@inject IStringLocalizer<AbpUiResource> UiLocalizer |
|
|
|
@inject IOptions<AuthenticationOptions> AuthenticationOptions |
|
|
|
@inject IOptions<AbpAspNetCoreComponentsWebOptions> AbpAspNetCoreComponentsWebOptions |
|
|
|
<AuthorizeView> |
|
|
|
<Authorized> |
|
|
|
<Dropdown RightAligned="true"> |
|
|
|
|
|
|
|
@ -59,6 +59,13 @@ public partial class LoginDisplay : IDisposable |
|
|
|
|
|
|
|
private void BeginSignOut() |
|
|
|
{ |
|
|
|
Navigation.NavigateToLogout(AuthenticationOptions.Value.LogoutUrl); |
|
|
|
if (AbpAspNetCoreComponentsWebOptions.Value.IsBlazorWebApp) |
|
|
|
{ |
|
|
|
Navigation.NavigateTo(AuthenticationOptions.Value.LogoutUrl, forceLoad: true); |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
Navigation.NavigateToLogout(AuthenticationOptions.Value.LogoutUrl); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|