From eb9b8e464ce1419b143c10462ae308c0d0179954 Mon Sep 17 00:00:00 2001 From: ssc <273702440@qq.com> Date: Sat, 2 Apr 2022 16:37:37 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20Avue2.9.x=20=E9=99=84=E4=BB=B6=E9=A2=84?= =?UTF-8?q?=E8=A7=88=E9=94=99=E8=AF=AF=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/plugin/workflow/mixins/ex-form.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) },