@titaui/pc 1.15.84-beta.1 → 1.15.84-beta.2

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/auth.js CHANGED
@@ -33,7 +33,7 @@ var BaseAuth = /*#__PURE__*/function () {
33
33
  function BaseAuth() {
34
34
  _classCallCheck(this, BaseAuth);
35
35
 
36
- this.loginUserInfor = (0, _bsGlobal.getBSGlobal)('loginUserInfo');
36
+ this.loginUserInfor = (0, _bsGlobal.getBSGlobal)('loginUserInfo') || {};
37
37
  } // 老板
38
38
 
39
39
 
@@ -80,7 +80,9 @@ var BaseAuth = /*#__PURE__*/function () {
80
80
  }, {
81
81
  key: "isSurveyManager",
82
82
  value: function isSurveyManager() {
83
- return this.loginUserInfor.IsSuveryManager;
83
+ var _this$loginUserInfor;
84
+
85
+ return (_this$loginUserInfor = this.loginUserInfor) === null || _this$loginUserInfor === void 0 ? void 0 : _this$loginUserInfor.IsSuveryManager;
84
86
  }
85
87
  }]);
86
88
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@titaui/pc",
3
- "version": "1.15.84-beta.1",
3
+ "version": "1.15.84-beta.2",
4
4
  "nameCN": "",
5
5
  "description": "",
6
6
  "main": "lib/index.js",