This commit is contained in:
parent
733314dc4b
commit
2cbcad7a71
|
|
@ -79,6 +79,9 @@ export function exportPerson(query) {
|
||||||
return request({
|
return request({
|
||||||
url: '/bracelet/export/exportPerson',
|
url: '/bracelet/export/exportPerson',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
|
headers: { 'Content-Type': 'application/x-www-form-urlencoded',
|
||||||
|
"encryption":"encryption"
|
||||||
|
},
|
||||||
responseType: 'blob',
|
responseType: 'blob',
|
||||||
params: query
|
params: query
|
||||||
})
|
})
|
||||||
|
|
@ -88,6 +91,9 @@ export function personFile(query) {
|
||||||
return request({
|
return request({
|
||||||
url: '/bracelet/download/personFile',
|
url: '/bracelet/download/personFile',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
|
headers: { 'Content-Type': 'application/x-www-form-urlencoded',
|
||||||
|
"encryption":"encryption"
|
||||||
|
},
|
||||||
responseType: 'blob',
|
responseType: 'blob',
|
||||||
params: query
|
params: query
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -116,6 +116,9 @@ service.interceptors.response.use(res => {
|
||||||
const resultData=decryptCBC(res.data.data);
|
const resultData=decryptCBC(res.data.data);
|
||||||
res.data=JSON.parse(resultData);
|
res.data=JSON.parse(resultData);
|
||||||
}
|
}
|
||||||
|
if (res.request.responseType === 'blob' || res.request.responseType === 'arraybuffer') {
|
||||||
|
return res.data
|
||||||
|
}
|
||||||
if(typeof res.data.code=='undefined'){
|
if(typeof res.data.code=='undefined'){
|
||||||
res.data= res.data.data
|
res.data= res.data.data
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue