This commit is contained in:
parent
733314dc4b
commit
2cbcad7a71
|
|
@ -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
|
||||
})
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue