liding
2025-04-03 28d60ee46f2a6ee67810108809fe86b9d32e822e
src/components/Preview/filePreview.vue
@@ -100,7 +100,7 @@
      const fileName = this.currentFile.fileName || this.fileUrl.split('/').pop().split('?')[0]
      let state = /\.(jpg|jpeg|png|gif)$/i.test(fileName)
      this.imgUrl = this.fileUrl
      console.log("文件名:", fileName, "是否图片:", state)
      // console.log("文件名:", fileName, "是否图片:", state)
      return state;
    },
    isPdf() {