From e7560ee0eada3d9be43cd2a45f43a0c47a905933 Mon Sep 17 00:00:00 2001 From: "382696293@qq.com" <382696293@qq.com> Date: Tue, 19 Mar 2024 09:51:41 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8E=E7=AE=A1-=E6=A8=A1=E5=BC=8F=E8=A7=86?= =?UTF-8?q?=E9=A2=91=E5=A2=9E=E5=8A=A0=20m4v=20=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- flossom-ui/src/views/system/mode/index.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flossom-ui/src/views/system/mode/index.vue b/flossom-ui/src/views/system/mode/index.vue index 3ae9a4f..3ca8664 100644 --- a/flossom-ui/src/views/system/mode/index.vue +++ b/flossom-ui/src/views/system/mode/index.vue @@ -246,7 +246,7 @@ :on-success="handleFileSuccess" :headers="upload.headers" :file-list="fileList" - accept=".mp4,.avi,.mov,.rmvb,.rm,.flv,.3gp" + accept=".mp4,.avi,.mov,.rmvb,.rm,.flv,.3gp,.m4v" > 点击上传
只能上传视频文件,且不超过50M
@@ -1210,7 +1210,7 @@ export default { return true; }, limitVideFileType(file) { - const videoType = ['video/mp4','video/avi','video/mov','video/rmvb','video/rm','video/flv','video/3gp'] + const videoType = ['video/mp4','video/avi','video/mov','video/rmvb','video/rm','video/flv','video/3gp', 'video/m4v'] let isVideo = videoType.includes(file.type) // 检验文件格式 if (!isVideo) {