const { fileName, fileUrl } = file;
console.log(fileUrl,'1227');
let url = fileUrl;
let name = fileName;
const downloadRes = async () => {
let response = await fetch(url); // 内容转变成blob地址
let blob = await response.blob(); // 创建隐藏的可下载链接
let objectUrl = window.URL.createObjectURL(blob);
let a = document.createElement('a');
a.href = objectUrl;
a.download = name;
a.click()
a.remove();
}
downloadRes();