bl-common-vue3 0.0.56 → 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
|
@@ -84579,6 +84579,7 @@ notification_api.warn = notification_api.warning;
|
|
|
84579
84579
|
|
|
84580
84580
|
|
|
84581
84581
|
|
|
84582
|
+
|
|
84582
84583
|
var utils = {
|
|
84583
84584
|
numberReg: /^\d+(\.\d+)?$/,
|
|
84584
84585
|
// 数字验证正则
|
|
@@ -84698,8 +84699,14 @@ var utils = {
|
|
|
84698
84699
|
var localData = localStorage.getItem(utils.blCommonKey);
|
|
84699
84700
|
|
|
84700
84701
|
if (localData) {
|
|
84701
|
-
localData
|
|
84702
|
+
localData = JSON.parse(localData);
|
|
84703
|
+
} else {
|
|
84704
|
+
localData = {};
|
|
84702
84705
|
}
|
|
84706
|
+
|
|
84707
|
+
console.log("----------setCommonLocal1", localData);
|
|
84708
|
+
localData[key] = value;
|
|
84709
|
+
localStorage.setItem(utils.blCommonKey, JSON.stringify(localData));
|
|
84703
84710
|
},
|
|
84704
84711
|
getCommonLocal: function getCommonLocal(key) {
|
|
84705
84712
|
var localData = localStorage.getItem(utils.blCommonKey);
|
package/lib/vue3common.umd.js
CHANGED
|
@@ -84588,6 +84588,7 @@ notification_api.warn = notification_api.warning;
|
|
|
84588
84588
|
|
|
84589
84589
|
|
|
84590
84590
|
|
|
84591
|
+
|
|
84591
84592
|
var utils = {
|
|
84592
84593
|
numberReg: /^\d+(\.\d+)?$/,
|
|
84593
84594
|
// 数字验证正则
|
|
@@ -84707,8 +84708,14 @@ var utils = {
|
|
|
84707
84708
|
var localData = localStorage.getItem(utils.blCommonKey);
|
|
84708
84709
|
|
|
84709
84710
|
if (localData) {
|
|
84710
|
-
localData
|
|
84711
|
+
localData = JSON.parse(localData);
|
|
84712
|
+
} else {
|
|
84713
|
+
localData = {};
|
|
84711
84714
|
}
|
|
84715
|
+
|
|
84716
|
+
console.log("----------setCommonLocal1", localData);
|
|
84717
|
+
localData[key] = value;
|
|
84718
|
+
localStorage.setItem(utils.blCommonKey, JSON.stringify(localData));
|
|
84712
84719
|
},
|
|
84713
84720
|
getCommonLocal: function getCommonLocal(key) {
|
|
84714
84721
|
var localData = localStorage.getItem(utils.blCommonKey);
|