sun-form-v3 1.0.67 → 1.0.68

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 +1 -1
  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.68",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "src"
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