修复http post请求封装的bug

This commit is contained in:
lyswhut
2019-09-02 01:36:03 +08:00
parent a2f7547cdb
commit 507d495f3f
4 changed files with 17 additions and 12 deletions
+3 -1
View File
@@ -229,7 +229,9 @@ const fatchData = (url, method, options, callback) => {
method,
headers: Object.assign({}, headers, options.headers || {}),
Origin: options.origin,
data: options.data,
body: options.body,
form: options.form,
formData: options.formData,
timeout: options.timeout || 10000,
json: options.format === undefined || options.format === 'json',
}, (err, resp, body) => {