licailing 4 лет назад
Родитель
Сommit
ea22dbe78c
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      src/main/vue/src/components/VideoUpload.vue

+ 2 - 2
src/main/vue/src/components/VideoUpload.vue

@@ -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) {