Skip to content

Commit 8ecaadf

Browse files
committedDec 14, 2024
fix: enable batch download
1 parent 79d2cf2 commit 8ecaadf

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed
 

‎admin-imgtc.html

+1-3
Original file line numberDiff line numberDiff line change
@@ -612,12 +612,9 @@
612612
this.selectedFiles.forEach((file, index) => {
613613
setTimeout(() => {
614614
const link = document.createElement('a');
615-
link.style.display = 'none';
616615
link.href = `/file/${file.name}`;
617616
link.download = file.metadata.fileName || file.name;
618-
document.body.appendChild(link);
619617
link.click();
620-
document.body.removeChild(link);
621618
}, index * 800);
622619
});
623620
this.selectedFiles = [];
@@ -653,6 +650,7 @@
653650
switch (command) {
654651
case 'copy': this.handleBatchCopy(); break;
655652
case 'delete': this.handleBatchDelete(); break;
653+
case 'download': this.handleBatchDownload(); break;
656654
case 'block': this.handleBatchBlockOrUnblock('Block'); break;
657655
case 'unblock': this.handleBatchBlockOrUnblock('White'); break;
658656
}

0 commit comments

Comments
 (0)