gaoluyang
2025-03-07 f112e2c62b6fca7b115dd37e34dc19dbcbc91d15
src/components/Preview/filePreview.vue
@@ -5,7 +5,7 @@
    </div>
    <div v-if="isPdf">
      <object :data="fileUrl" type="application/pdf" width="100%" height="750px">
        <p>您的浏览器不支持 PDF 预览。<a :href="fileUrl">下载 PDF 文件</a></p>
        <p>您的浏览器不支持 PDF 预览。<a :href="fileUrl" style="color: #3a7bfa;" target="_blank">下载 PDF 文件</a></p>
      </object>
    </div>
    <div v-if="isDoc">
@@ -96,6 +96,7 @@
      if (state) {
        this.imgUrl = this.fileUrl.replaceAll('word', 'img')
      }
      console.log(11111, this.imgUrl)
      return state;
    },
    isPdf() {