推送工具下载修改
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
206087b5c1
commit
3d9021acc6
|
|
@ -111,7 +111,15 @@ export default {
|
||||||
.toLocaleLowerCase()
|
.toLocaleLowerCase()
|
||||||
fileName += extendName
|
fileName += extendName
|
||||||
}
|
}
|
||||||
res = await downLoadFile(this.OSSclientConfig.basePath + row.Path, fileName)
|
const a = document.createElement('a')
|
||||||
|
// xls类型: application/vnd.ms-excel
|
||||||
|
// xlsx类型:application/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
|
this.downloading = false
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue