down_zbUploadClearfile({ //http接口
name:'1'
time:'7',
}).then(async (res) => {
if (res) {
this.selectData = [];
const zip = new JSZip();
zip.generateAsync({ type: "object" }).then(() => {
const downloadUrl = window.URL.createObjectURL(res);
const link = document.createElement("a");
link.href = downloadUrl;
link.setAttribute("download", `123test.zip`);
appendChild(link);
link.click();
// 释放 URL 对象
URL.revokeObjectURL(link.hrefs);
});
}
});