|
|
@@ -50,13 +50,13 @@ export default {
|
|
|
beforeUpload(file) {
|
|
|
console.log(file);
|
|
|
const isVideo = /video\/.*/.test(file.type);
|
|
|
- const isLt100M = file.size / 1024 / 1024 < 100;
|
|
|
+ const isLt100M = file.size / 1024 / 1024 < 200;
|
|
|
|
|
|
if (!isVideo) {
|
|
|
this.$message.error('请上传视频文件!');
|
|
|
}
|
|
|
if (!isLt100M) {
|
|
|
- this.$message.error('上传视频大小不能超过 100MB!');
|
|
|
+ this.$message.error('上传视频大小不能超过 200MB!');
|
|
|
}
|
|
|
const allow = isVideo && isLt100M;
|
|
|
if (allow) {
|