sun-form-v3 1.0.67 → 1.0.69

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/package.json +4 -4
  2. package/src/http.js +5 -4
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "sun-form-v3",
3
3
  "private": false,
4
- "version": "1.0.67",
4
+ "version": "1.0.69",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "src"
@@ -27,14 +27,14 @@
27
27
  "sass": "^1.77.2",
28
28
  "tailwindcss": "^3.4.3",
29
29
  "vue": "^3.4.21",
30
- "vuedraggable": "^4.1.0"
30
+ "vuedraggable": "^4.1.0",
31
+ "xe-utils": "^3.5.26"
31
32
  },
32
33
  "devDependencies": {
33
34
  "@vitejs/plugin-vue": "^5.0.4",
34
35
  "element-plus": "^2.7.3",
35
36
  "terser": "^5.31.0",
36
37
  "vite": "^5.2.8",
37
- "vxe-table": "^4.6.17",
38
- "xe-utils": "^3.5.26"
38
+ "vxe-table": "^4.6.17"
39
39
  }
40
40
  }
package/src/http.js CHANGED
@@ -1,5 +1,6 @@
1
1
  import axios from 'axios'
2
- import qs from 'qs'
2
+ // import qs from 'qs'
3
+ import XEUtils from 'xe-utils'
3
4
  import {
4
5
  ElNotification
5
6
  } from 'element-plus'
@@ -223,7 +224,7 @@ class Http {
223
224
  return this.send({
224
225
  url: url,
225
226
  method: 'post',
226
- data: qs.stringify(this.paramHandle(data)),
227
+ data: XEUtils.serialize(this.paramHandle(data)),
227
228
  headers: {
228
229
  ...this.formDataHeader,
229
230
  ...headers
@@ -261,7 +262,7 @@ class Http {
261
262
  return this.send({
262
263
  url: url,
263
264
  method: 'put',
264
- data: qs.stringify(this.paramHandle(data)),
265
+ data: XEUtils.serialize(this.paramHandle(data)),
265
266
  headers: {
266
267
  ...this.formDataHeader,
267
268
  ...headers
@@ -280,7 +281,7 @@ class Http {
280
281
  return this.send({
281
282
  url: url,
282
283
  method: 'patch',
283
- data: qs.stringify(this.paramHandle(data)),
284
+ data: XEUtils.serialize(this.paramHandle(data)),
284
285
  headers: {
285
286
  ...this.formDataHeader,
286
287
  ...headers