后管-模式视频增加 m4v 格式

master
382696293@qq.com 2 years ago
parent 4f3e26caa7
commit e7560ee0ea

@ -246,7 +246,7 @@
:on-success="handleFileSuccess" :on-success="handleFileSuccess"
:headers="upload.headers" :headers="upload.headers"
:file-list="fileList" :file-list="fileList"
accept=".mp4,.avi,.mov,.rmvb,.rm,.flv,.3gp" accept=".mp4,.avi,.mov,.rmvb,.rm,.flv,.3gp,.m4v"
> >
<el-button size="small" type="primary">点击上传</el-button> <el-button size="small" type="primary">点击上传</el-button>
<div slot="tip" class="el-upload__tip">只能上传视频文件且不超过50M</div> <div slot="tip" class="el-upload__tip">只能上传视频文件且不超过50M</div>
@ -1210,7 +1210,7 @@ export default {
return true; return true;
}, },
limitVideFileType(file) { 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) let isVideo = videoType.includes(file.type)
// //
if (!isVideo) { if (!isVideo) {

Loading…
Cancel
Save