component-shipinlv 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/dist/lib/Tool.js +3 -3
  2. package/package.json +1 -1
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "component-shipinlv",
3
- "version": "0.0.7",
3
+ "version": "0.0.8",
4
4
  "description": "",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",