|
@@ -46,13 +46,13 @@ function getFile() {
|
|
|
}
|
|
|
function beforeUpload({ file }) {
|
|
|
const MAX_FILE_SIZE_IMAGE = 5 * 1024 * 1024
|
|
|
- const MAX_FILE_SIZE_VIDEO = 20 * 1024 * 1024
|
|
|
+ const MAX_FILE_SIZE_VIDEO = 200 * 1024 * 1024
|
|
|
console.log('file', file.type)
|
|
|
if (file.file.size > MAX_FILE_SIZE_IMAGE && String(file.type).includes('image')) {
|
|
|
$message.error('图像文件大小不能超过 5MB')
|
|
|
return false
|
|
|
} else if (file.file.size > MAX_FILE_SIZE_VIDEO && String(file.type).includes('video')) {
|
|
|
- $message.error('视频文件大小不能超过 20MB')
|
|
|
+ $message.error('视频文件大小不能超过 200MB')
|
|
|
return false
|
|
|
}
|
|
|
else {
|