This commit is contained in:
cwchen 2024-08-08 20:10:31 +08:00
parent 733314dc4b
commit 2cbcad7a71
2 changed files with 9 additions and 0 deletions

View File

@ -79,6 +79,9 @@ export function exportPerson(query) {
return request({
url: '/bracelet/export/exportPerson',
method: 'get',
headers: { 'Content-Type': 'application/x-www-form-urlencoded',
"encryption":"encryption"
},
responseType: 'blob',
params: query
})
@ -88,6 +91,9 @@ export function personFile(query) {
return request({
url: '/bracelet/download/personFile',
method: 'get',
headers: { 'Content-Type': 'application/x-www-form-urlencoded',
"encryption":"encryption"
},
responseType: 'blob',
params: query
})

View File

@ -116,6 +116,9 @@ service.interceptors.response.use(res => {
const resultData=decryptCBC(res.data.data);
res.data=JSON.parse(resultData);
}
if (res.request.responseType === 'blob' || res.request.responseType === 'arraybuffer') {
return res.data
}
if(typeof res.data.code=='undefined'){
res.data= res.data.data
}