raise-common-lib 0.0.54 → 0.0.56

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,9 @@ 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) {
1958
+ return _this.urlWithoutQuery(ele.url) === _this.urlWithoutQuery(_this.router.url);
1959
+ }));
1958
1960
  if (isExistIdx !== -1) {
1959
1961
  this.selectedTab = isExistIdx;
1960
1962
  }
@@ -1982,12 +1984,10 @@ var MultiTabComponent = /** @class */ (function () {
1982
1984
  /** @type {?} */
1983
1985
  var title = state && state.title;
1984
1986
  if (currentRoute && !skipLocationChange) {
1985
- if (_this.noGenerateTabUrls.includes(_this.router.url)) {
1987
+ if (_this.noGenerateTabUrls.includes(_this.urlWithoutQuery(_this.router.url))) {
1986
1988
  return; // 排除不生成tab的url
1987
1989
  }
1988
- /** @type {?} */
1989
- var urlWithoutQuery = _this.router.url.split('?')[0];
1990
- _this.setTab(urlWithoutQuery, currentRoute.snapshot.routeConfig.path, title);
1990
+ _this.setTab(_this.router.url, currentRoute.snapshot.routeConfig.path, title);
1991
1991
  }
1992
1992
  }
1993
1993
  })));
@@ -2129,7 +2129,7 @@ var MultiTabComponent = /** @class */ (function () {
2129
2129
  * @return {?}
2130
2130
  */
2131
2131
  function (ele) { return ele.url !== tab.url; }));
2132
- this.clearCache(tab.url);
2132
+ this.clearCache(this.urlWithoutQuery(tab.url));
2133
2133
  if (this.selectedTab === idx) {
2134
2134
  /** @type {?} */
2135
2135
  var targetIdx = Math.max(0, idx - 1);
@@ -2197,7 +2197,7 @@ var MultiTabComponent = /** @class */ (function () {
2197
2197
  * @param {?} ele
2198
2198
  * @return {?}
2199
2199
  */
2200
- function (ele) { return ele.url === url; }));
2200
+ function (ele) { return _this.urlWithoutQuery(ele.url) === _this.urlWithoutQuery(url); }));
2201
2201
  if (isExistIdx === -1) {
2202
2202
  /** @type {?} */
2203
2203
  var singleIdx_1 = this.singleReuseUrls.findIndex((/**
@@ -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",