fix: Blazor 站点首页防止重复添加 PathBase
This commit is contained in:
parent
5fbb942a26
commit
6321500dd7
|
@ -122,7 +122,7 @@ namespace Bootstrap.Admin.Pages.Components
|
|||
RequestUrl = new UriBuilder(NavigationManager.Uri).Path;
|
||||
Model = new NavigatorBarModel(UserName, RequestUrl.ToMvcMenuUrl());
|
||||
DisplayName = Model.DisplayName;
|
||||
HomeUrl = NavigationManager.ToBlazorLink(HomeUrl);
|
||||
if (HomeUrl.StartsWith("/")) HomeUrl = NavigationManager.ToBlazorLink(HomeUrl);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue