raise-common-lib 0.0.55 → 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.
- package/bundles/raise-common-lib.umd.js +7 -7
- package/bundles/raise-common-lib.umd.js.map +1 -1
- package/bundles/raise-common-lib.umd.min.js +1 -1
- package/bundles/raise-common-lib.umd.min.js.map +1 -1
- package/esm2015/lib/layout/multi-tab/index.component.js +6 -8
- package/esm5/lib/layout/multi-tab/index.component.js +8 -8
- package/fesm2015/raise-common-lib.js +5 -7
- package/fesm2015/raise-common-lib.js.map +1 -1
- package/fesm5/raise-common-lib.js +7 -7
- package/fesm5/raise-common-lib.js.map +1 -1
- package/package.json +1 -1
|
@@ -2149,7 +2149,9 @@
|
|
|
2149
2149
|
* @param {?} ele
|
|
2150
2150
|
* @return {?}
|
|
2151
2151
|
*/
|
|
2152
|
-
function (ele) {
|
|
2152
|
+
function (ele) {
|
|
2153
|
+
return _this.urlWithoutQuery(ele.url) === _this.urlWithoutQuery(_this.router.url);
|
|
2154
|
+
}));
|
|
2153
2155
|
if (isExistIdx !== -1) {
|
|
2154
2156
|
this.selectedTab = isExistIdx;
|
|
2155
2157
|
}
|
|
@@ -2180,9 +2182,7 @@
|
|
|
2180
2182
|
if (_this.noGenerateTabUrls.includes(_this.urlWithoutQuery(_this.router.url))) {
|
|
2181
2183
|
return; // 排除不生成tab的url
|
|
2182
2184
|
}
|
|
2183
|
-
|
|
2184
|
-
var urlWithoutQuery = _this.urlWithoutQuery(_this.router.url);
|
|
2185
|
-
_this.setTab(urlWithoutQuery, currentRoute.snapshot.routeConfig.path, title);
|
|
2185
|
+
_this.setTab(_this.router.url, currentRoute.snapshot.routeConfig.path, title);
|
|
2186
2186
|
}
|
|
2187
2187
|
}
|
|
2188
2188
|
})));
|
|
@@ -2303,7 +2303,7 @@
|
|
|
2303
2303
|
if (title) {
|
|
2304
2304
|
sessionStorage.removeItem("firstTabTitle");
|
|
2305
2305
|
/** @type {?} */
|
|
2306
|
-
var url = this.
|
|
2306
|
+
var url = this.router.url;
|
|
2307
2307
|
this.addTab(url, title);
|
|
2308
2308
|
}
|
|
2309
2309
|
}
|
|
@@ -2324,7 +2324,7 @@
|
|
|
2324
2324
|
* @return {?}
|
|
2325
2325
|
*/
|
|
2326
2326
|
function (ele) { return ele.url !== tab.url; }));
|
|
2327
|
-
this.clearCache(tab.url);
|
|
2327
|
+
this.clearCache(this.urlWithoutQuery(tab.url));
|
|
2328
2328
|
if (this.selectedTab === idx) {
|
|
2329
2329
|
/** @type {?} */
|
|
2330
2330
|
var targetIdx = Math.max(0, idx - 1);
|
|
@@ -2392,7 +2392,7 @@
|
|
|
2392
2392
|
* @param {?} ele
|
|
2393
2393
|
* @return {?}
|
|
2394
2394
|
*/
|
|
2395
|
-
function (ele) { return ele.url === url; }));
|
|
2395
|
+
function (ele) { return _this.urlWithoutQuery(ele.url) === _this.urlWithoutQuery(url); }));
|
|
2396
2396
|
if (isExistIdx === -1) {
|
|
2397
2397
|
/** @type {?} */
|
|
2398
2398
|
var singleIdx_1 = this.singleReuseUrls.findIndex((/**
|