async downloadGetAxiosFile(url,newFilename) {
console.log(url,newFilename,111)
await axios({
method:'get',
headers:{'Authorization':`${util.cookies.get('token_type')} ${util.cookies.get('token')}`},
url:url,
responseType:'blob' // 设置响应类型为blob
}).then(res =>{
console.log(res,'查看数据 8888')
// const contentType = this.parseContentDispositionHeader(res.headers['Content-Disposition'])
const contentType =res.headers['content-type'].split('; ')[0]
const blob =new Blob([res.data],{type: contentType})
const url =window.URL.createObjectURL(blob);
const a =document.createElement('a') // 创建一个a标签
a.setAttribute('href', url);
a.setAttribute('target','_blank')
a.setAttribute('download',newFilename ||'file') // 设置下载的文件名
document.body.appendChild(a)
a.click();// 模拟点击链接进行下载
document.body.removeChild(a) // 下载完成后移除a标签
window.URL.revokeObjectURL(url) // 释放URL对象
})
},