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) {