【记录】
返回的内容是乱码,同时文件打开后显示undefined
【对应措施-例子】
export function downloadFile(){
return http.get(`${API_XXX}`/.../download,{
responseType:"arraybuffer" //!!!记得写上这第二个入参
})
}
调整后接口的response
【记录】
返回的内容是乱码,同时文件打开后显示undefined
【对应措施-例子】
export function downloadFile(){
return http.get(`${API_XXX}`/.../download,{
responseType:"arraybuffer" //!!!记得写上这第二个入参
})
}
调整后接口的response