axios({
method:'get',
url:'url地址',
responseType:'blob',
}).then(res=>{
const link=document.createElement('a');
let blob=new Blob([res.data],{type:'application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'})
link.style.display='none',
link.href=URL.createObjectURL(blob);
link.downLoad='下载文件名',
document.body.appendChild(link);
link.click();
document.body.removeChild(link)
}).catch(error=>{
throw error;
})