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() {