diff --git a/src/components/showFile.vue b/src/components/showFile.vue index 0aadcf1..1f15d2f 100644 --- a/src/components/showFile.vue +++ b/src/components/showFile.vue @@ -72,6 +72,10 @@ import api from "@/services/caseManagement"; // 如果是图片,直接显示图片 this.fileType = 'video' } + else if(this.$util.getFileType(url) === 'audio') { + // 如果是图片,直接显示图片 + this.fileType = 'video' + } else { this.fileType = 'other'