From 8297b050818a4745cc34887b1172f154d23d33e4 Mon Sep 17 00:00:00 2001 From: Argo Window10 Date: Thu, 12 Dec 2019 12:09:11 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E4=BE=A7=E8=BE=B9?= =?UTF-8?q?=E6=A0=8F=E9=BB=98=E8=AE=A4=20active=20=E8=8F=9C=E5=8D=95?= =?UTF-8?q?=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/admin/Bootstrap.Admin/Models/NavigatorBarModel.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/admin/Bootstrap.Admin/Models/NavigatorBarModel.cs b/src/admin/Bootstrap.Admin/Models/NavigatorBarModel.cs index 9a859503..dfad8504 100644 --- a/src/admin/Bootstrap.Admin/Models/NavigatorBarModel.cs +++ b/src/admin/Bootstrap.Admin/Models/NavigatorBarModel.cs @@ -16,7 +16,7 @@ namespace Bootstrap.Admin.Models /// 构造函数 /// /// - public NavigatorBarModel(ControllerBase controller) : this(controller.User.Identity.Name) + public NavigatorBarModel(ControllerBase controller) : this(controller.User.Identity.Name, $"~{controller.Request.Path}") { } @@ -26,7 +26,7 @@ namespace Bootstrap.Admin.Models /// /// /// - public NavigatorBarModel(string? userName, string activeUrl = "~/Admin/Index") : base(userName) + public NavigatorBarModel(string? userName, string activeUrl = "") : base(userName) { Navigations = MenuHelper.RetrieveSystemMenus(UserName, activeUrl); var authApps = AppHelper.RetrievesByUserName(userName);