refactor: 调整 Tab 网页路由

This commit is contained in:
Argo Zhang 2020-01-28 19:46:22 +08:00
parent 344a6cbca0
commit bef576efe5
No known key found for this signature in database
GPG Key ID: 152E398953DDF19F
2 changed files with 2 additions and 2 deletions

View File

@ -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)
{
// 访问日志

View File

@ -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
{