fix: 修复侧边栏菜单缺失问题

This commit is contained in:
Argo Zhang 2020-02-12 22:35:02 +08:00
parent bddefe3971
commit 5fbb942a26
No known key found for this signature in database
GPG Key ID: 152E398953DDF19F
1 changed files with 4 additions and 6 deletions

View File

@ -113,11 +113,10 @@ namespace Bootstrap.Admin.Pages.Components
}
/// <summary>
/// 设置参数方法
/// OnParametersSetAsync 方法
/// </summary>
public override Task SetParametersAsync(ParameterView parameters)
protected override void OnParametersSet()
{
parameters.SetParameterProperties(this);
if (NavigationManager != null)
{
RequestUrl = new UriBuilder(NavigationManager.Uri).Path;
@ -125,11 +124,10 @@ namespace Bootstrap.Admin.Pages.Components
DisplayName = Model.DisplayName;
HomeUrl = NavigationManager.ToBlazorLink(HomeUrl);
}
return base.SetParametersAsync(ParameterView.Empty);
}
/// <summary>
///
/// 显示名称变化时方法
/// </summary>
public void OnDisplayNameChanged(string displayName)
{
@ -139,7 +137,7 @@ namespace Bootstrap.Admin.Pages.Components
}
/// <summary>
///
/// OnAfterRender 方法
/// </summary>
/// <param name="firstRender"></param>
protected override void OnAfterRender(bool firstRender)