refactor: 调整 Tab 网页路由
This commit is contained in:
parent
344a6cbca0
commit
bef576efe5
|
@ -31,7 +31,7 @@ namespace Bootstrap.Admin.Pages.Components
|
|||
var name = Name.Replace("/", ".");
|
||||
if (!string.IsNullOrEmpty(name))
|
||||
{
|
||||
var t = Type.GetType($"Bootstrap.Admin{name}");
|
||||
var t = Type.GetType($"Bootstrap.Admin.Pages.Views.{name}");
|
||||
if (t != null)
|
||||
{
|
||||
// 访问日志
|
||||
|
|
|
@ -84,7 +84,7 @@ namespace Bootstrap.Admin.Pages.Components
|
|||
Tabs.ForEach(t => t.SetActive(false));
|
||||
Tabs.Add(tab);
|
||||
Pages.ForEach(p => p.Active = false);
|
||||
Pages.Add(new PageContentAttributes() { Id = menu.Id, Name = menu.Url.ToBlazorMenuUrl(), Active = true });
|
||||
Pages.Add(new PageContentAttributes() { Id = menu.Id, Name = menu.Url.Replace("~/", ""), Active = true });
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue