@titaui/pc 1.9.99 → 1.9.100
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/lib/utils/bs-global.js +1 -1
- package/package.json +1 -1
- package/src/utils/bs-global.js +1 -1
package/lib/utils/bs-global.js
CHANGED
|
@@ -19,7 +19,7 @@ var getTenantInfo = function getTenantInfo() {
|
|
|
19
19
|
exports.getTenantInfo = getTenantInfo;
|
|
20
20
|
|
|
21
21
|
var getBSGlobal = function getBSGlobal(key) {
|
|
22
|
-
return window.BSGlobal[key];
|
|
22
|
+
return window.BSGlobal && window.BSGlobal[key];
|
|
23
23
|
};
|
|
24
24
|
|
|
25
25
|
exports.getBSGlobal = getBSGlobal;
|
package/package.json
CHANGED
package/src/utils/bs-global.js
CHANGED
|
@@ -2,7 +2,7 @@ export const getUserInfo = () => window.BSGlobal && window.BSGlobal.loginUserInf
|
|
|
2
2
|
|
|
3
3
|
export const getTenantInfo = () => window.BSGlobal && window.BSGlobal.tenantInfo;
|
|
4
4
|
|
|
5
|
-
export const getBSGlobal = (key) => window.BSGlobal[key];
|
|
5
|
+
export const getBSGlobal = (key) => window.BSGlobal && window.BSGlobal[key];
|
|
6
6
|
|
|
7
7
|
export const getOkrAdvancedSetting = () => window.BSGlobal.OkrAdvancedSetting;
|
|
8
8
|
|