gaoluyang
2025-04-12 454c1f927a0e8c10757521590483bf49cf9b7b21
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" style="color: #3a7bfa;">下载 PDF 文件</a></p>
        <p>您的浏览器不支持 PDF 预览。<a :href="fileUrl" style="color: #3a7bfa;" target="_blank">下载 PDF 文件</a></p>
      </object>
    </div>
    <div v-if="isDoc">
@@ -96,7 +96,6 @@
      if (state) {
        this.imgUrl = this.fileUrl.replaceAll('word', 'img')
      }
      console.log(11111, this.imgUrl)
      return state;
    },
    isPdf() {