重构代码:精简代码,提高阅读质量

This commit is contained in:
Argo-MacBookPro 2018-06-12 11:50:52 +08:00
parent b0d80e7728
commit 3d574edfa8
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ namespace Bootstrap.Admin.Models
{
public NavigatorBarModel(ControllerBase controller) : base(controller.User.Identity)
{
Navigations = BootstrapMenu.RetrieveSystemMenus(UserName, $"~/{controller.ControllerContext.ActionDescriptor.ControllerName}/{controller.ControllerContext.ActionDescriptor.ActionName}");
Navigations = BootstrapMenu.RetrieveSystemMenus(UserName, $"~{controller.HttpContext.Request.Path}");
Applications = DictHelper.RetrieveApps();
HomeUrl = "~/Admin/Index";
}