raise-common-lib 0.0.54 → 0.0.55

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.
@@ -1954,7 +1954,7 @@ var MultiTabComponent = /** @class */ (function () {
1954
1954
  * @param {?} ele
1955
1955
  * @return {?}
1956
1956
  */
1957
- function (ele) { return ele.url === _this.router.url; }));
1957
+ function (ele) { return ele.url === _this.urlWithoutQuery(_this.router.url); }));
1958
1958
  if (isExistIdx !== -1) {
1959
1959
  this.selectedTab = isExistIdx;
1960
1960
  }
@@ -1982,11 +1982,11 @@ var MultiTabComponent = /** @class */ (function () {
1982
1982
  /** @type {?} */
1983
1983
  var title = state && state.title;
1984
1984
  if (currentRoute && !skipLocationChange) {
1985
- if (_this.noGenerateTabUrls.includes(_this.router.url)) {
1985
+ if (_this.noGenerateTabUrls.includes(_this.urlWithoutQuery(_this.router.url))) {
1986
1986
  return; // 排除不生成tab的url
1987
1987
  }
1988
1988
  /** @type {?} */
1989
- var urlWithoutQuery = _this.router.url.split('?')[0];
1989
+ var urlWithoutQuery = _this.urlWithoutQuery(_this.router.url);
1990
1990
  _this.setTab(urlWithoutQuery, currentRoute.snapshot.routeConfig.path, title);
1991
1991
  }
1992
1992
  }
@@ -2108,7 +2108,7 @@ var MultiTabComponent = /** @class */ (function () {
2108
2108
  if (title) {
2109
2109
  sessionStorage.removeItem("firstTabTitle");
2110
2110
  /** @type {?} */
2111
- var url = this.router.url;
2111
+ var url = this.urlWithoutQuery(this.router.url);
2112
2112
  this.addTab(url, title);
2113
2113
  }
2114
2114
  }
@@ -2264,6 +2264,19 @@ var MultiTabComponent = /** @class */ (function () {
2264
2264
  this.keepAlive.clearCache(url); // 调用自定义策略的清除缓存方法
2265
2265
  this.drawer.deleteCache(url);
2266
2266
  };
2267
+ /**
2268
+ * @private
2269
+ * @param {?} url
2270
+ * @return {?}
2271
+ */
2272
+ MultiTabComponent.prototype.urlWithoutQuery = /**
2273
+ * @private
2274
+ * @param {?} url
2275
+ * @return {?}
2276
+ */
2277
+ function (url) {
2278
+ return url.split("?")[0];
2279
+ };
2267
2280
  MultiTabComponent.decorators = [
2268
2281
  { type: Component, args: [{
2269
2282
  selector: "rs-multi-tab",