|
|
@@ -76,7 +76,7 @@
|
|
|
<div class="el-upload__tip" slot="tip">
|
|
|
<p class="upHint">格式要求:</p>
|
|
|
<p class="upHint">
|
|
|
- 1、支持视频格式文件(例如:AVI、mov、rmvb、rm、FLV、mp4、3GP)。
|
|
|
+ 1、仅支持mp4视频格式文件。
|
|
|
</p>
|
|
|
<p class="upHint">2、最大支持2G的视频文件。</p>
|
|
|
</div>
|
|
|
@@ -176,14 +176,7 @@ export default {
|
|
|
beforeFujian (file) {
|
|
|
console.log('附件上传前', file)
|
|
|
const sizeOk = file.size / 1024 / 1024 < 2048
|
|
|
- const typeOk =
|
|
|
- file.type === 'video/mp4' ||
|
|
|
- file.type === 'video/avi' ||
|
|
|
- file.type === 'video/quicktime' ||
|
|
|
- file.type === 'video/rm' ||
|
|
|
- (file.type === '' &&
|
|
|
- (file.name.includes('.flv') || file.name.includes('.rmvb'))) ||
|
|
|
- file.type === 'video/3gpp'
|
|
|
+ const typeOk = file.type === 'video/mp4'
|
|
|
return new Promise((resolve, reject) => {
|
|
|
if (file.name.length > 32) {
|
|
|
this.$message.error('视频名字不能超过32个字')
|