spring
2025-03-25 af62acf44d4424689378b1f0c6bb99b98d47565f
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() {