|
|
@ -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)
|
|
|
|