/// <summary> /// OnParametersSetAsync 方法 /// </summary> protected override void OnParametersSet() { if (NavigationManager != null) { RequestUrl = new UriBuilder(NavigationManager.Uri).Path; Model = new NavigatorBarModel(UserName, RequestUrl.ToMvcMenuUrl()); DisplayName = Model.DisplayName; WebTitle = Model.Title; WebFooter = Model.Footer; } }
/// <summary> /// OnParametersSetAsync 方法 /// </summary> protected override void OnParametersSet() { if (NavigationManager != null) { RequestUrl = new UriBuilder(NavigationManager.Uri).Path; Model = new NavigatorBarModel(UserName, RequestUrl.ToMvcMenuUrl()); DisplayName = Model.DisplayName; WebTitle = Model.Title; WebFooter = Model.Footer; if (HomeUrl.StartsWith("/")) { HomeUrl = NavigationManager.ToBlazorLink(HomeUrl); } } }
/// <summary> /// 设置参数方法 /// </summary> protected override void OnParametersSet() { RequestUrl = new UriBuilder(NavigationManager?.Uri ?? "").Path; Model = new NavigatorBarModel(UserName, RequestUrl.ToMvcMenuUrl()); DisplayName = Model.DisplayName; }