Skip to content

Commit

Permalink
fix: improve batch download
Browse files Browse the repository at this point in the history
  • Loading branch information
DJChanahCJD committed Dec 14, 2024
1 parent 79d2cf2 commit 7d8a434
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions admin-imgtc.html
Original file line number Diff line number Diff line change
Expand Up @@ -612,16 +612,13 @@
this.selectedFiles.forEach((file, index) => {
setTimeout(() => {
const link = document.createElement('a');
link.style.display = 'none';
link.href = `/file/${file.name}`;
link.download = file.metadata.fileName || file.name;
document.body.appendChild(link);
link.click();
document.body.removeChild(link);
}, index * 800);
});
this.selectedFiles = [];
},
link.href = `/file/${file.name}`;
link.download = file.metadata.fileName || file.name;
link.click();
}, index * 800);
});
this.selectedFiles = [];
},
handleBatchBlockOrUnblock(type) { // 批量加入黑/白名单
if (type !== 'Block' && type !== 'White') { this.$message.error('无效的操作类型'); return; }
const typeToName = { Block: '黑名单', White: '白名单' };
Expand Down

0 comments on commit 7d8a434

Please sign in to comment.