diff --git a/src/views/plugin/workflow/mixins/ex-form.js b/src/views/plugin/workflow/mixins/ex-form.js index 5157047..a0b1c4c 100644 --- a/src/views/plugin/workflow/mixins/ex-form.js +++ b/src/views/plugin/workflow/mixins/ex-form.js @@ -463,7 +463,8 @@ export default { // 上传组件预览 handleUploadPreview(file, column, done) { const { url } = file - const { video, img } = this.$typeList + const video = /\.(swf|avi|flv|mpg|rm|mov|wav|asf|3gp|mkv|rmvb|ogg|mp4)/ + const img = /\.(gif|jpg|jpeg|png|GIF|JPG|PNG)/ if (video.test(url) || img.test(url)) done() else window.open(url) },