component-shipinlv 0.0.25 → 0.0.26
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/lib/Tool.js +4 -4
- package/package.json +1 -1
package/dist/lib/Tool.js
CHANGED
@@ -21,7 +21,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
21
21
|
var packageJson = require("../../package.json");
|
22
22
|
var store = {
|
23
23
|
key: function key() {
|
24
|
-
return "
|
24
|
+
return ""; // _shipinlv_
|
25
25
|
},
|
26
26
|
get: function get(name) {
|
27
27
|
var getData;
|
@@ -83,14 +83,14 @@ var Tool = _objectSpread(_objectSpread({
|
|
83
83
|
avatarUrl: '',
|
84
84
|
canWithdraw: 0,
|
85
85
|
douzhuliId36: ''
|
86
|
-
}, store.get('
|
86
|
+
}, store.get('user-info'));
|
87
87
|
storageUserInfo.avatarUrl = storageUserInfo.avatarUrl || 'https://douzhuli.oss-cn-hangzhou.aliyuncs.com/avatar/1-10.png';
|
88
88
|
return storageUserInfo;
|
89
89
|
},
|
90
90
|
setLocalUserInfo: function setLocalUserInfo() {
|
91
91
|
var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
92
92
|
var userInfo = _objectSpread(_objectSpread({}, this.getLocalUserInfo()), data);
|
93
|
-
store.set('
|
93
|
+
store.set('user-info', userInfo);
|
94
94
|
return userInfo;
|
95
95
|
},
|
96
96
|
getLocalSiteInfo: function getLocalSiteInfo() {
|
@@ -931,7 +931,7 @@ var Tool = _objectSpread(_objectSpread({
|
|
931
931
|
userInfo.isLogin = false;
|
932
932
|
delete userInfo.sid;
|
933
933
|
Tool.GData.userInfo = userInfo;
|
934
|
-
Tool.store.set('
|
934
|
+
Tool.store.set('user-info', userInfo);
|
935
935
|
},
|
936
936
|
onWindowError: function onWindowError() {
|
937
937
|
JsError();
|