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);