From bb60ce144056610d44f3797dfc6c00c46dda5af6 Mon Sep 17 00:00:00 2001 From: zzyuan <781948537@qq.com> Date: Thu, 12 Jun 2025 17:27:53 +0800 Subject: [PATCH] =?UTF-8?q?=E9=97=AE=E9=A2=98=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/request.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) => {