diff --git a/src/components/PreviewUtil/previewUtil.vue b/src/components/PreviewUtil/previewUtil.vue index 18b83e9..e835109 100644 --- a/src/components/PreviewUtil/previewUtil.vue +++ b/src/components/PreviewUtil/previewUtil.vue @@ -151,13 +151,23 @@ export default { self.$emit('previewLoadingClose') return } - if(row.fileName.endsWith(".mp4")){ - this.playerOptions.sources = [ - { - src: row.fileUrl, - type: 'video/mp4' - } - ] + if(row.fileName.endsWith(".mp4") || row.fileName.endsWith(".webm")){ + if(row.fileName.endsWith(".mp4")){ + this.playerOptions.sources = [ + { + src: row.fileUrl, + type: 'video/mp4' + } + ] + }else{ + this.playerOptions.sources = [ + { + src: row.fileUrl, + type: 'video/webm' + } + ] + } + self.dialogVisible = true self.isVideos = true; self.previewLoading = false diff --git a/src/views/document/editDocument.vue b/src/views/document/editDocument.vue index 4ab5569..c31702f 100644 --- a/src/views/document/editDocument.vue +++ b/src/views/document/editDocument.vue @@ -134,7 +134,7 @@