重构代码:精简代码,提高阅读质量
This commit is contained in:
parent
b0d80e7728
commit
3d574edfa8
|
@ -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";
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue