olp-table 5.3.0 → 5.3.4
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/package.json
CHANGED
|
@@ -1,6 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "olp-table",
|
|
3
|
-
"version": "5.3.
|
|
3
|
+
"version": "5.3.4",
|
|
4
|
+
"main": "olp-table/olp-table.umd.js",
|
|
5
|
+
"module": "olp-table/olp-table.umd.js",
|
|
6
|
+
"exports": {
|
|
7
|
+
".": {
|
|
8
|
+
"import": {
|
|
9
|
+
"node": "./olp-table/olp-table.common.js",
|
|
10
|
+
"default": "./olp-table/olp-table.umd.js"
|
|
11
|
+
},
|
|
12
|
+
"require": "./olp-table/olp-table.umd.js"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
4
15
|
"scripts": {
|
|
5
16
|
"serve": "vue-cli-service serve",
|
|
6
17
|
"build": "vue-cli-service build",
|
package/src/store/dict.js
CHANGED
|
@@ -37,7 +37,6 @@ export const storeDict = defineStore(DIST, {
|
|
|
37
37
|
}
|
|
38
38
|
},
|
|
39
39
|
async initValue() {
|
|
40
|
-
this.isInit = false;
|
|
41
40
|
let dictItems = localStorage.getItem(DIST);
|
|
42
41
|
if (dictItems) {
|
|
43
42
|
let value = JSON.parse(dictItems);
|
|
@@ -51,6 +50,7 @@ export const storeDict = defineStore(DIST, {
|
|
|
51
50
|
}
|
|
52
51
|
}
|
|
53
52
|
this.object = obj;
|
|
53
|
+
this.isInit = false;
|
|
54
54
|
} else {
|
|
55
55
|
console.log("数据字典未初始化:"+DIST)
|
|
56
56
|
//await this.refresh()
|
package/src/store/dictType.js
CHANGED
|
@@ -23,12 +23,12 @@ export const storeDictType = defineStore(DIST_TYPE, {
|
|
|
23
23
|
}
|
|
24
24
|
},
|
|
25
25
|
async initValue() {
|
|
26
|
-
this.isInit = false;
|
|
27
26
|
let dictItems = localStorage.getItem(DIST_TYPE);
|
|
28
27
|
//let dictItems = undefined;
|
|
29
28
|
if (dictItems) {
|
|
30
29
|
let value = JSON.parse(dictItems);
|
|
31
30
|
this.value = value;
|
|
31
|
+
this.isInit = false;
|
|
32
32
|
} else {
|
|
33
33
|
console.log("数据字典未初始化:"+DIST_TYPE)
|
|
34
34
|
//await this.refresh()
|
package/src/store/permi.js
CHANGED
|
@@ -24,14 +24,14 @@ export const storePermi = defineStore(PERMISSION_CACHE_KEY , {
|
|
|
24
24
|
await this.initValue();
|
|
25
25
|
}
|
|
26
26
|
},
|
|
27
|
-
async initValue(
|
|
28
|
-
this.isInit = false
|
|
27
|
+
async initValue() {
|
|
29
28
|
let dataItems = localStorage.getItem(PERMISSION_CACHE_KEY );
|
|
30
29
|
if (dataItems) {
|
|
31
30
|
let value = JSON.parse(dataItems);
|
|
32
31
|
this.value = value;
|
|
32
|
+
this.isInit = false
|
|
33
33
|
} else {
|
|
34
|
-
|
|
34
|
+
// await this.refresh(http)
|
|
35
35
|
}
|
|
36
36
|
},
|
|
37
37
|
async refresh() {
|