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.
- package/dist/lib/Tool.js +3 -3
- 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 "
|
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
|
}
|