raise-common-lib 0.0.47 → 0.0.48
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 +10 -4
- 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 +11 -5
- package/esm5/lib/layout/multi-tab/index.component.js +11 -5
- package/fesm2015/raise-common-lib.js +10 -4
- package/fesm2015/raise-common-lib.js.map +1 -1
- package/fesm5/raise-common-lib.js +10 -4
- package/fesm5/raise-common-lib.js.map +1 -1
- package/package.json +1 -1
|
@@ -2179,10 +2179,6 @@
|
|
|
2179
2179
|
if (_this.noGenerateTabUrls.includes(_this.router.url)) {
|
|
2180
2180
|
return; // 排除不生成tab的url
|
|
2181
2181
|
}
|
|
2182
|
-
if (_this.tabList.length === 0) {
|
|
2183
|
-
title = sessionStorage.getItem("firstTabTitle");
|
|
2184
|
-
sessionStorage.removeItem("firstTabTitle");
|
|
2185
|
-
}
|
|
2186
2182
|
_this.setTab(_this.router.url, currentRoute.snapshot.routeConfig.path, title);
|
|
2187
2183
|
}
|
|
2188
2184
|
}
|
|
@@ -2298,6 +2294,16 @@
|
|
|
2298
2294
|
/** @type {?} */
|
|
2299
2295
|
var TabCache = JSON.parse(sessionStorage.getItem("TabCache"));
|
|
2300
2296
|
this.tabList = TabCache || [];
|
|
2297
|
+
if (this.tabList.length === 0) {
|
|
2298
|
+
/** @type {?} */
|
|
2299
|
+
var title = sessionStorage.getItem("firstTabTitle");
|
|
2300
|
+
if (title) {
|
|
2301
|
+
sessionStorage.removeItem("firstTabTitle");
|
|
2302
|
+
/** @type {?} */
|
|
2303
|
+
var url = this.router.url;
|
|
2304
|
+
this.addTab(url, title);
|
|
2305
|
+
}
|
|
2306
|
+
}
|
|
2301
2307
|
};
|
|
2302
2308
|
/**
|
|
2303
2309
|
* @param {?} idx
|