zhongshujie
13 小时以前 8aa7796f70c4a7903fb85431eaf95e881c6c067d
src/components/pdfview/index.vue
@@ -105,6 +105,8 @@
    },
    async downloadPdf() {
      console.log(this.preViewMd5)
      console.log(await getResourcePath(this.preViewMd5),"12345");
      window.open(await getResourcePath(this.preViewMd5))
    },
    domViewer() {
@@ -171,13 +173,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
        })