Esempio n. 1
0
 /// <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;
     }
 }
Esempio n. 2
0
 /// <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;
 }