axios({
url : 'http//:182.12.13.587/api/get/img' + 跟后台定好参数,
method : "post",
responseType :"arraybuffer",
headers :{
"Content-Type" : "multipart/form-data;charset=UTF-8"
}
}).then(res=>{
let blob = new Blob([res.data],{type:"application/vnd.ms-excel"})
let imgUrl = URl.createobkectURl(blob)
console.log(imgUrl)
})
})
网友评论