@titaui/pc 1.15.84-beta.6 → 1.15.84-beta.7

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.
@@ -105,6 +105,8 @@ var formatNum = function formatNum(num) {
105
105
  exports.formatNum = formatNum;
106
106
 
107
107
  var hasWebHead = function hasWebHead(webHeadName) {
108
+ var _window$BSGlobal4, _window$BSGlobal4$Web;
109
+
108
110
  var webHeadMap = {
109
111
  task: '1',
110
112
  okr: '113',
@@ -112,7 +114,7 @@ var hasWebHead = function hasWebHead(webHeadName) {
112
114
  apply: '907',
113
115
  kaohe: '403'
114
116
  };
115
- var webHead = window.BSGlobal.WebHead.AppHead;
117
+ var webHead = ((_window$BSGlobal4 = window.BSGlobal) === null || _window$BSGlobal4 === void 0 ? void 0 : (_window$BSGlobal4$Web = _window$BSGlobal4.WebHead) === null || _window$BSGlobal4$Web === void 0 ? void 0 : _window$BSGlobal4$Web.AppHead) || [];
116
118
  return webHead.findIndex(function (a) {
117
119
  return a.AppId === webHeadMap[webHeadName];
118
120
  }) !== -1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@titaui/pc",
3
- "version": "1.15.84-beta.6",
3
+ "version": "1.15.84-beta.7",
4
4
  "nameCN": "",
5
5
  "description": "",
6
6
  "main": "lib/index.js",