download(loadAddress, id) {
// 下载产品
let files = {};
files.name = "作品压缩包";
// files.filePath = loadAddress
let notifyinfo = this.$notify({
title: '正在下载产品...',
iconClass:'el-icon-loading'
});
let filePath = loadAddress;
request
.requestDownload({ filePath })
.then((res) => {
console.log("000000", res);
const blob = new Blob([res], { type: res.type });
const downloadElement = document.createElement("a");
const href = window.URL.createObjectURL(blob); //创建下载的链接
downloadElement.href = href;
downloadElement.download = files.name; //下载后文件名
document.body.appendChild(downloadElement);