张同海 2 years ago
parent abb4958e8b
commit d3a378f846

@ -428,7 +428,6 @@ export default {
this.pdfUrl = window.URL.createObjectURL(new Blob([res], { type: 'application/pdf;charset=utf-8' })) this.pdfUrl = window.URL.createObjectURL(new Blob([res], { type: 'application/pdf;charset=utf-8' }))
const fname = data.fileName // const fname = data.fileName //
const link = document.createElement('a') const link = document.createElement('a')
console.log(this.pdfUrl)
link.href = this.pdfUrl link.href = this.pdfUrl
link.setAttribute('download', fname) link.setAttribute('download', fname)
document.body.appendChild(link) document.body.appendChild(link)

Loading…
Cancel
Save