cloud-web-corejs 1.0.54-dev.154 → 1.0.54-dev.155
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
@@ -9,15 +9,22 @@ modules = {
|
|
9
9
|
...opts
|
10
10
|
});
|
11
11
|
},*/
|
12
|
-
handleDecryptData(
|
13
|
-
|
14
|
-
if(Array.isArray(data)){
|
12
|
+
handleDecryptData(data){
|
13
|
+
if(data){
|
14
|
+
if (Array.isArray(data)) {
|
15
15
|
data.forEach(item=>{
|
16
|
-
|
16
|
+
this.handleDecryptData(item)
|
17
17
|
})
|
18
|
+
} else if (Object.prototype.toString.call(item) === "[object Object]") {
|
19
|
+
this.handleDecryptData(data)
|
20
|
+
} else {
|
21
|
+
let str = "ATEN*-";
|
22
|
+
if(data.startWith(str)){
|
23
|
+
data = data.slice(str.length)
|
24
|
+
}
|
18
25
|
}
|
19
26
|
}
|
20
|
-
|
27
|
+
return data;
|
21
28
|
},
|
22
29
|
formHttp(opts) {
|
23
30
|
let data = opts.data;
|
@@ -91,12 +98,9 @@ modules = {
|
|
91
98
|
...reqData
|
92
99
|
},
|
93
100
|
success: res => {
|
94
|
-
if(res.objx){
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
}
|
99
|
-
}
|
101
|
+
/*if(res.objx){
|
102
|
+
res.objx = this.handleDecryptData(res.objx);
|
103
|
+
}*/
|
100
104
|
if (opts.successMsg) {
|
101
105
|
this.$message({
|
102
106
|
message: res.content,
|