首先在请求里加上responseType: 'blob'
http({
url: '',
method: 'post',
headers: {
'Content-Type': 'application/json'
},
responseType: 'blob',
data: saveObj
})
然后再返参里下载
http({
首先在请求里加上responseType: 'blob'
http({
url: '',
method: 'post',
headers: {
'Content-Type': 'application/json'
},
responseType: 'blob',
data: saveObj
})
然后再返参里下载
http({