raise-common-lib 0.0.41 → 0.0.42

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1922,14 +1922,17 @@ var MultiTabComponent = /** @class */ (function () {
1922
1922
  // 获取是否跳过 location change
1923
1923
  /** @type {?} */
1924
1924
  var currentRoute = _this.router.routerState.root.firstChild;
1925
+ /** @type {?} */
1926
+ var title = state && state.title;
1925
1927
  if (currentRoute && !skipLocationChange) {
1926
- if (_this.tabList.length === 0 && !state) {
1927
- return; // 初始化第一个url不加入multi-tab
1928
- }
1929
1928
  if (_this.noGenerateTabUrls.includes(_this.router.url)) {
1930
1929
  return; // 排除不生成tab的url
1931
1930
  }
1932
- _this.setTab(_this.router.url, currentRoute.snapshot.routeConfig.path, state && state.title);
1931
+ if (_this.tabList.length === 0 && !state) {
1932
+ title = sessionStorage.getItem("firstTabTitle");
1933
+ sessionStorage.removeItem("firstTabTitle");
1934
+ }
1935
+ _this.setTab(_this.router.url, currentRoute.snapshot.routeConfig.path, title);
1933
1936
  }
1934
1937
  }
1935
1938
  }));