推送工具下载修改
continuous-integration/drone/push Build is passing Details

main
wangxiaoshuang 2025-11-03 17:57:12 +08:00
parent 206087b5c1
commit 3d9021acc6
1 changed files with 9 additions and 1 deletions

View File

@ -111,7 +111,15 @@ export default {
.toLocaleLowerCase()
fileName += extendName
}
res = await downLoadFile(this.OSSclientConfig.basePath + row.Path, fileName)
const a = document.createElement('a')
// xls: application/vnd.ms-excel
// xlsxapplication/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8
const href = this.OSSclientConfig.basePath + row.Path
a.download = fileName
a.href = href
a.click()
URL.revokeObjectURL(href)
// res = await downLoadFile(this.OSSclientConfig.basePath + row.Path, fileName)
}
this.downloading = false
} catch (err) {