소스 검색

视频浓缩图更新到5M

yjwang 2 주 전
부모
커밋
7feac3d1b7
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/views/components/course/userCourseCatalogDetails.vue

+ 2 - 2
src/views/components/course/userCourseCatalogDetails.vue

@@ -620,9 +620,9 @@ export default {
       }
     },
     beforeAvatarUpload(file) {
-      const isLt1M = file.size / 1024 / 1024 < 1;
+      const isLt1M = file.size / 1024 / 1024 < 5;
       if (!isLt1M) {
-        this.$message.error('上传图片大小不能超过 1MB!');
+        this.$message.error('上传图片大小不能超过 5MB!');
       }
       return isLt1M;
     },