From 7dac42f920e3c1ea0e570db19a18442d81addf83 Mon Sep 17 00:00:00 2001 From: bb_pan Date: Fri, 25 Apr 2025 16:21:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sgzb-ui/src/utils/request.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sgzb-ui/src/utils/request.js b/sgzb-ui/src/utils/request.js index 5c4d6e2c..cd64081c 100644 --- a/sgzb-ui/src/utils/request.js +++ b/sgzb-ui/src/utils/request.js @@ -193,7 +193,7 @@ export function downloadJson(url, params, filename, config) { downloadLoadingInstance = Loading.service({ text: "正在下载数据,请稍候", spinner: "el-icon-loading", background: "rgba(0, 0, 0, 0.7)", }) return service.post(url, params, { transformRequest: [(params) => { return params }], - headers: { 'Content-Type': 'application/json' }, + headers: { 'Content-Type': 'application/json', encryptResponse: false }, responseType: 'blob', ...config }).then(async (data) => {