部分下载文件功能添加

This commit is contained in:
2026-09-23 13:45:06 +08:00
parent 0e42842611
commit 86a3520ecb
6 changed files with 36 additions and 32 deletions
+1 -1
View File
@@ -238,8 +238,8 @@ export function getTimeRangeStamp(timeRange: string){
export function downloadFileFun(url: string, name: string) {
const a = document.createElement('a');
a.href = url;
a.target = '_blank';
a.download = name;
a.style.display = 'none';
document.body.appendChild(a)
a.click()
document.body.removeChild(a);