| | |
| | | this.localDialogVisible = true |
| | | }, |
| | | async downloadPdf() { |
| | | console.log(this.preViewMd5) |
| | | console.log(await getResourcePath(this.preViewMd5),"12345"); |
| | | |
| | | window.open(await getResourcePath(this.preViewMd5)) |
| | | }, |
| | | domViewer() { |
| | |
| | | .then((res) => { |
| | | try { |
| | | if (typeof res === 'string' && res !== null) { |
| | | console.log(134) |
| | | this.totalPage = JSON.parse(res).totalPages |
| | | } else if (typeof res === 'object' && res !== null) { |
| | | console.log(res.totalPages) |
| | | this.totalPage = res.totalPages |
| | | } |
| | | } catch (error) { |
| | | console.log(error, 'pdf返回值类型错误'); |
| | | } |
| | | console.log(this.currentPage,"111") |
| | | this.createDom(this.currentPage) |
| | | this.loading = false |
| | | }) |