diff --git a/Bootstrap.Admin/BootstrapAdmin.db b/Bootstrap.Admin/BootstrapAdmin.db index 48c551c2..f357c060 100644 Binary files a/Bootstrap.Admin/BootstrapAdmin.db and b/Bootstrap.Admin/BootstrapAdmin.db differ diff --git a/Bootstrap.Client.DataAccess/DictHelper.cs b/Bootstrap.Client.DataAccess/DictHelper.cs index 49d2104d..9e654e7a 100644 --- a/Bootstrap.Client.DataAccess/DictHelper.cs +++ b/Bootstrap.Client.DataAccess/DictHelper.cs @@ -36,6 +36,15 @@ namespace Bootstrap.Client.DataAccess return RetrieveAppName("系统设置地址"); } + /// + /// + /// + /// + public static string RetrieveNotisUrl() + { + return RetrieveAppName("系统通知地址"); + } + /// /// /// diff --git a/Bootstrap.Client/Models/HeaderBarModel.cs b/Bootstrap.Client/Models/HeaderBarModel.cs index 12a149c1..cfe2636d 100644 --- a/Bootstrap.Client/Models/HeaderBarModel.cs +++ b/Bootstrap.Client/Models/HeaderBarModel.cs @@ -23,34 +23,46 @@ namespace Bootstrap.Client.Models UserName = user.UserName; SettingsUrl = DictHelper.RetrieveSettingsUrl(); ProfilesUrl = DictHelper.RetrieveProfilesUrl(); + NotisUrl = DictHelper.RetrieveNotisUrl(); var uriBuilder = new UriBuilder(ConfigurationManager.AppSettings["AuthHost"]); uriBuilder.Path = uriBuilder.Path == "/" ? CookieAuthenticationDefaults.LogoutPath.Value : uriBuilder.Path + CookieAuthenticationDefaults.LogoutPath; LogoutUrl = uriBuilder.ToString(); if (!string.IsNullOrEmpty(user.Css)) Theme = user.Css; } + /// /// /// public string UserName { get; } + /// /// /// public string DisplayName { get; } + /// /// 获得/设置 用户头像地址 /// public string Icon { get; } + /// /// 获得/设置 设置网址 /// public string SettingsUrl { get; } + /// /// 获得/设置 个人中心网址 /// public string ProfilesUrl { get; } + /// /// 获得 退出登录地址 /// public string LogoutUrl { get; } + + /// + /// + /// + public string NotisUrl { get; } } } \ No newline at end of file diff --git a/Bootstrap.Client/Views/Shared/Header.cshtml b/Bootstrap.Client/Views/Shared/Header.cshtml index b768d3a6..45c4f376 100644 --- a/Bootstrap.Client/Views/Shared/Header.cshtml +++ b/Bootstrap.Client/Views/Shared/Header.cshtml @@ -31,7 +31,7 @@