this.$Request.GET(sessionStorage.getItem('token'),{fileUrl:fileUrl},"/admin/download taskTemplate file").then(res=>{
console.log(res)
if(res.data.status == 0){
this.$message({
type: 'info',
message: res.data.message
});
}
let url = window.URL.createObjectURL(new Blob([res.data]));
let link = document.createElement('a');
link.style.display = 'none';
link.href = url;
link.download = 'download_' + new Date().valueOf() + '.zip'
link.click()
document.body.removeChild(link)
window.URL.revokeObjectURL(url)
})
0条评论