调用这个方法就行
this.downLoad('http://....', '文件名称');
downLoad(url, fileName) {
return fetch(url).then((res) => {
res.fetch(url).then((blob) => {
const a = document.createElement("a");
const url = window.URL.createObjectURL(blob);
a.href = url;
a.download = fileName;
a.click();
window.URL.revokeObjectURL(url);
});
});
},