This commit is contained in:
bb_pan 2025-04-25 16:21:05 +08:00
parent eb947c4b72
commit 7dac42f920
1 changed files with 1 additions and 1 deletions

View File

@ -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)", }) downloadLoadingInstance = Loading.service({ text: "正在下载数据,请稍候", spinner: "el-icon-loading", background: "rgba(0, 0, 0, 0.7)", })
return service.post(url, params, { return service.post(url, params, {
transformRequest: [(params) => { return params }], transformRequest: [(params) => { return params }],
headers: { 'Content-Type': 'application/json' }, headers: { 'Content-Type': 'application/json', encryptResponse: false },
responseType: 'blob', responseType: 'blob',
...config ...config
}).then(async (data) => { }).then(async (data) => {