component-shipinlv 0.0.7 → 0.0.9

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/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 ".".concat(WebBaseConfig.webKind, "-").concat(WebBaseConfig.productName);
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("__".concat(this.key(), "__") + name);
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("__".concat(this.key(), "__") + name, JSON.stringify(saveData));
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 1:
23
+ case 2:
21
24
  case "end":
22
25
  return _context.stop();
23
26
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "component-shipinlv",
3
- "version": "0.0.7",
3
+ "version": "0.0.9",
4
4
  "description": "",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",