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.
@@ -2149,7 +2149,7 @@
2149
2149
  * @param {?} ele
2150
2150
  * @return {?}
2151
2151
  */
2152
- function (ele) { return ele.url === _this.router.url; }));
2152
+ function (ele) { return ele.url === _this.urlWithoutQuery(_this.router.url); }));
2153
2153
  if (isExistIdx !== -1) {
2154
2154
  this.selectedTab = isExistIdx;
2155
2155
  }
@@ -2177,11 +2177,11 @@
2177
2177
  /** @type {?} */
2178
2178
  var title = state && state.title;
2179
2179
  if (currentRoute && !skipLocationChange) {
2180
- if (_this.noGenerateTabUrls.includes(_this.router.url)) {
2180
+ if (_this.noGenerateTabUrls.includes(_this.urlWithoutQuery(_this.router.url))) {
2181
2181
  return; // 排除不生成tab的url
2182
2182
  }
2183
2183
  /** @type {?} */
2184
- var urlWithoutQuery = _this.router.url.split('?')[0];
2184
+ var urlWithoutQuery = _this.urlWithoutQuery(_this.router.url);
2185
2185
  _this.setTab(urlWithoutQuery, currentRoute.snapshot.routeConfig.path, title);
2186
2186
  }
2187
2187
  }
@@ -2303,7 +2303,7 @@
2303
2303
  if (title) {
2304
2304
  sessionStorage.removeItem("firstTabTitle");
2305
2305
  /** @type {?} */
2306
- var url = this.router.url;
2306
+ var url = this.urlWithoutQuery(this.router.url);
2307
2307
  this.addTab(url, title);
2308
2308
  }
2309
2309
  }
@@ -2459,6 +2459,19 @@
2459
2459
  this.keepAlive.clearCache(url); // 调用自定义策略的清除缓存方法
2460
2460
  this.drawer.deleteCache(url);
2461
2461
  };
2462
+ /**
2463
+ * @private
2464
+ * @param {?} url
2465
+ * @return {?}
2466
+ */
2467
+ MultiTabComponent.prototype.urlWithoutQuery = /**
2468
+ * @private
2469
+ * @param {?} url
2470
+ * @return {?}
2471
+ */
2472
+ function (url) {
2473
+ return url.split("?")[0];
2474
+ };
2462
2475
  MultiTabComponent.decorators = [
2463
2476
  { type: core.Component, args: [{
2464
2477
  selector: "rs-multi-tab",