diff --git a/src/utils/request.js b/src/utils/request.js index cc3345f5..b7ac21fb 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -184,7 +184,8 @@ export function download(url, params, filename, config) { transformRequest: [(params) => { return tansParams(params) }], - headers: { 'Content-Type': 'application/x-www-form-urlencoded', encryptResponse: false}, + // headers: { 'Content-Type': 'application/x-www-form-urlencoded', encryptResponse: false}, + headers: { 'Content-Type': 'application/json', encryptResponse: false}, responseType: 'blob', ...config }).then(async(data) => {