diff --git a/src/api/construction-person/entry-and-exit-manage/person-entry.js b/src/api/construction-person/entry-and-exit-manage/person-entry.js index 44d86d0..558c045 100644 --- a/src/api/construction-person/entry-and-exit-manage/person-entry.js +++ b/src/api/construction-person/entry-and-exit-manage/person-entry.js @@ -147,5 +147,6 @@ export const downloadTaskAPI = (url) => { url: `/bmw/zipDownload/downloadFile${url}`, method: 'GET', responseType: 'blob', + isBlob: true, }) } diff --git a/src/utils/request.js b/src/utils/request.js index 9ec1f5d..1552a40 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -83,6 +83,10 @@ service.interceptors.request.use( ? 'true' : 'false' + if (config.isBlob) { + config.headers['encryptResponse'] = 'false' + } + const isRepeatSubmit = repeatSubmit // 处理 Token if (getToken() && isToken) {