wq hace 5 años
padre
commit
3d92b4d00a
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      src/layout/custom/uploadFile.vue

+ 2 - 2
src/layout/custom/uploadFile.vue

@@ -85,9 +85,9 @@
       },
       beforeUpload (file) {
         if (file != null) {
-          const isLt1M = file.size / 1024 / 1024 < 5;
+          const isLt1M = file.size / 1024 / 1024 < 7;
           if (!isLt1M) {
-            this.$message.error('上传文件大小不能超过5MB!');
+            this.$message.error('上传文件大小不能超过7MB!');
             return false;
           }
         }