bl-common-vue3 0.0.57 → 0.0.58
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/lib/vue3common.common.js
CHANGED
|
@@ -84696,7 +84696,15 @@ var utils = {
|
|
|
84696
84696
|
* 存取公共存储参数
|
|
84697
84697
|
*/
|
|
84698
84698
|
setCommonLocal: function setCommonLocal(key, value) {
|
|
84699
|
-
var localData = localStorage.getItem(utils.blCommonKey)
|
|
84699
|
+
var localData = localStorage.getItem(utils.blCommonKey);
|
|
84700
|
+
|
|
84701
|
+
if (localData) {
|
|
84702
|
+
localData = JSON.parse(localData);
|
|
84703
|
+
} else {
|
|
84704
|
+
localData = {};
|
|
84705
|
+
}
|
|
84706
|
+
|
|
84707
|
+
console.log("----------setCommonLocal1", localData);
|
|
84700
84708
|
localData[key] = value;
|
|
84701
84709
|
localStorage.setItem(utils.blCommonKey, JSON.stringify(localData));
|
|
84702
84710
|
},
|
package/lib/vue3common.umd.js
CHANGED
|
@@ -84705,7 +84705,15 @@ var utils = {
|
|
|
84705
84705
|
* 存取公共存储参数
|
|
84706
84706
|
*/
|
|
84707
84707
|
setCommonLocal: function setCommonLocal(key, value) {
|
|
84708
|
-
var localData = localStorage.getItem(utils.blCommonKey)
|
|
84708
|
+
var localData = localStorage.getItem(utils.blCommonKey);
|
|
84709
|
+
|
|
84710
|
+
if (localData) {
|
|
84711
|
+
localData = JSON.parse(localData);
|
|
84712
|
+
} else {
|
|
84713
|
+
localData = {};
|
|
84714
|
+
}
|
|
84715
|
+
|
|
84716
|
+
console.log("----------setCommonLocal1", localData);
|
|
84709
84717
|
localData[key] = value;
|
|
84710
84718
|
localStorage.setItem(utils.blCommonKey, JSON.stringify(localData));
|
|
84711
84719
|
},
|