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
|
@@ -1984,10 +1984,6 @@ var MultiTabComponent = /** @class */ (function () {
|
|
|
1984
1984
|
if (_this.noGenerateTabUrls.includes(_this.router.url)) {
|
|
1985
1985
|
return; // 排除不生成tab的url
|
|
1986
1986
|
}
|
|
1987
|
-
if (_this.tabList.length === 0) {
|
|
1988
|
-
title = sessionStorage.getItem("firstTabTitle");
|
|
1989
|
-
sessionStorage.removeItem("firstTabTitle");
|
|
1990
|
-
}
|
|
1991
1987
|
_this.setTab(_this.router.url, currentRoute.snapshot.routeConfig.path, title);
|
|
1992
1988
|
}
|
|
1993
1989
|
}
|
|
@@ -2103,6 +2099,16 @@ var MultiTabComponent = /** @class */ (function () {
|
|
|
2103
2099
|
/** @type {?} */
|
|
2104
2100
|
var TabCache = JSON.parse(sessionStorage.getItem("TabCache"));
|
|
2105
2101
|
this.tabList = TabCache || [];
|
|
2102
|
+
if (this.tabList.length === 0) {
|
|
2103
|
+
/** @type {?} */
|
|
2104
|
+
var title = sessionStorage.getItem("firstTabTitle");
|
|
2105
|
+
if (title) {
|
|
2106
|
+
sessionStorage.removeItem("firstTabTitle");
|
|
2107
|
+
/** @type {?} */
|
|
2108
|
+
var url = this.router.url;
|
|
2109
|
+
this.addTab(url, title);
|
|
2110
|
+
}
|
|
2111
|
+
}
|
|
2106
2112
|
};
|
|
2107
2113
|
/**
|
|
2108
2114
|
* @param {?} idx
|