|
|
|
|
@ -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"
|
|
|
|
|
>
|
|
|
|
|
<el-button size="small" type="primary">点击上传</el-button>
|
|
|
|
|
<div slot="tip" class="el-upload__tip">只能上传视频文件,且不超过50M</div>
|
|
|
|
|
@ -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) {
|
|
|
|
|
|