From b5d1cc7fde9823f39c0c9595f21c7aee2582ac59 Mon Sep 17 00:00:00 2001 From: QYF-GitLab1 <1940665526@qq.com> Date: 星期一, 28 四月 2025 18:12:37 +0800 Subject: [PATCH] 合并 --- src/components/pdfview/index.vue | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/src/components/pdfview/index.vue b/src/components/pdfview/index.vue index a295a3a..132f0b4 100644 --- a/src/components/pdfview/index.vue +++ b/src/components/pdfview/index.vue @@ -104,6 +104,7 @@ this.localDialogVisible = true }, async downloadPdf() { + console.log(this.preViewMd5) window.open(await getResourcePath(this.preViewMd5)) }, domViewer() { @@ -170,13 +171,16 @@ .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 }) -- Gitblit v1.9.1