Browse Source

feat: save

gemercheung 5 months ago
parent
commit
1825c630fe
1 changed files with 2 additions and 2 deletions
  1. 2 2
      packages/vivid/src/core/components/VividSimpleUpload.vue

+ 2 - 2
packages/vivid/src/core/components/VividSimpleUpload.vue

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