|
@@ -168,12 +168,12 @@ export default {
|
|
|
},
|
|
|
// 上传附件
|
|
|
beforeFujian (file) {
|
|
|
- // console.log('附件上传前', file)
|
|
|
+ console.log('附件上传前', file)
|
|
|
const sizeOk = file.size / 1024 / 1024 < 1024
|
|
|
const typeOk =
|
|
|
file.type === 'video/mp4' ||
|
|
|
file.type === 'video/avi' ||
|
|
|
- file.type === 'video/quicktime' || file.type === 'video/rmvb' || file.type === 'video/rm' || (file.type === '' && file.name.includes('.flv')) || file.type === 'video/3gpp'
|
|
|
+ file.type === 'video/quicktime' || file.type === 'video/rmvb' || file.type === 'video/rm' || (file.type === '' && (file.name.includes('.flv') || file.name.includes('.rmvb'))) || file.type === 'video/3gpp'
|
|
|
return new Promise((resolve, reject) => {
|
|
|
if (file.name.length > 32) {
|
|
|
this.$message.error('视频名字不能超过32个字')
|