From 21190e54e0fc3f5c5a8bc12500c48cf1853bfd62 Mon Sep 17 00:00:00 2001
From: zhongshujie <2862698242@qq.com>
Date: 星期五, 14 三月 2025 17:46:55 +0800
Subject: [PATCH] Merge branch 'master' of http://182.92.203.7:2001/r/testbookLayout

---
 src/components/pdfview/index.vue |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/components/pdfview/index.vue b/src/components/pdfview/index.vue
index 163122c..132f0b4 100644
--- a/src/components/pdfview/index.vue
+++ b/src/components/pdfview/index.vue
@@ -56,7 +56,6 @@
     }
   },
   watch: {
-
     // md5: {
     //   immediate: true,
     //   handler(val) {
@@ -83,7 +82,6 @@
     //     this.viewerCon?.destroy();
     //   }
     // },
-
   },
   methods: {
     hadleOpenDialog() {
@@ -106,6 +104,7 @@
       this.localDialogVisible = true
     },
     async downloadPdf() {
+      console.log(this.preViewMd5)
       window.open(await getResourcePath(this.preViewMd5))
     },
     domViewer() {
@@ -172,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