html
<!-- a标签占位 -->
<a ref="down" ></a>
javascript
getTest() {
this.$axios.request({
url: 'https://cnv13.55.la/download?file_key=3695fa9461a0ae59cf3148581e4fe339&handle_type=excel2pdf',
method: 'get',
responseType: 'blob', // 切记类型 blob
}).then(res => {
const url = URL.createObjectURL(res.data)
this.$refs.down.href = url //转化成本地url
this.$refs.down.download = '123456.pdf'//下载的文件名字
this.$refs.down.click() //点击a标签
})