diff --git a/src/admin/Bootstrap.Admin/Models/HeaderBarModel.cs b/src/admin/Bootstrap.Admin/Models/HeaderBarModel.cs index c71a9a2c..d3af6628 100644 --- a/src/admin/Bootstrap.Admin/Models/HeaderBarModel.cs +++ b/src/admin/Bootstrap.Admin/Models/HeaderBarModel.cs @@ -36,7 +36,6 @@ namespace Bootstrap.Admin.Models // 后台系统网站图标跟随个人中心设置的默认应用站点的展示 WebSiteIcon = DictHelper.RetrieveWebIcon(AppId); WebSiteLogo = DictHelper.RetrieveWebLogo(AppId); - } } diff --git a/src/admin/Bootstrap.Admin/Models/ProfilesModel.cs b/src/admin/Bootstrap.Admin/Models/ProfilesModel.cs index ff2a4616..e01cb5e2 100644 --- a/src/admin/Bootstrap.Admin/Models/ProfilesModel.cs +++ b/src/admin/Bootstrap.Admin/Models/ProfilesModel.cs @@ -25,6 +25,11 @@ namespace Bootstrap.Admin.Models /// public bool External { get; } + /// + /// 获得 当前用户默认应用程序名称 + /// + public string AppName { get; } + /// /// /// @@ -46,6 +51,9 @@ namespace Bootstrap.Admin.Models } if (controller.User.Identity.AuthenticationType != Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationDefaults.AuthenticationScheme) External = true; + + // 设置 当前用户默认应用名称 + AppName = Applications.FirstOrDefault(app => app.Key == AppId).Value; } } } diff --git a/src/admin/Bootstrap.Admin/Views/Admin/Profiles.cshtml b/src/admin/Bootstrap.Admin/Views/Admin/Profiles.cshtml index e57c1493..3daf44f3 100644 --- a/src/admin/Bootstrap.Admin/Views/Admin/Profiles.cshtml +++ b/src/admin/Bootstrap.Admin/Views/Admin/Profiles.cshtml @@ -87,7 +87,7 @@
- +