component-shipinlv 0.0.7 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
package/dist/lib/Tool.js
CHANGED
@@ -21,12 +21,12 @@ var packageJson = require("../../package.json");
|
|
21
21
|
var store = {
|
22
22
|
key: function key() {
|
23
23
|
var WebBaseConfig = window.WebBaseConfig || {};
|
24
|
-
return "
|
24
|
+
return "__".concat(WebBaseConfig.webKind, "-").concat(WebBaseConfig.productName, "__");
|
25
25
|
},
|
26
26
|
get: function get(name) {
|
27
27
|
var getData;
|
28
28
|
try {
|
29
|
-
getData = window.localStorage.getItem(
|
29
|
+
getData = window.localStorage.getItem(this.key() + name);
|
30
30
|
if (getData) {
|
31
31
|
getData = JSON.parse(getData);
|
32
32
|
}
|
@@ -47,7 +47,7 @@ var store = {
|
|
47
47
|
value: value
|
48
48
|
};
|
49
49
|
try {
|
50
|
-
window.localStorage.setItem(
|
50
|
+
window.localStorage.setItem(this.key() + name, JSON.stringify(saveData));
|
51
51
|
} catch (e) {
|
52
52
|
console.error('LocalStorage set Error:', e);
|
53
53
|
}
|
@@ -10,6 +10,9 @@ function _login() {
|
|
10
10
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
11
11
|
while (1) switch (_context.prev = _context.next) {
|
12
12
|
case 0:
|
13
|
+
// 兼容
|
14
|
+
// @ts-ignore
|
15
|
+
body.account = body.accountName;
|
13
16
|
return _context.abrupt("return", request("auth/loginAccount", {
|
14
17
|
method: 'POST',
|
15
18
|
headers: {
|
@@ -17,7 +20,7 @@ function _login() {
|
|
17
20
|
},
|
18
21
|
data: _objectSpread({}, body)
|
19
22
|
}));
|
20
|
-
case
|
23
|
+
case 2:
|
21
24
|
case "end":
|
22
25
|
return _context.stop();
|
23
26
|
}
|