Browse Source

修改图片大小限制

wjj 4 days ago
parent
commit
63c8ef8fcd
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/views/qw/sop/ImageUpload.vue

+ 1 - 1
src/views/qw/sop/ImageUpload.vue

@@ -152,7 +152,7 @@ export default {
         return false;
       }
       if (this.fileSize) {
-        const isLt = file.size / 1024 / 1024 < this.fileSize;
+        const isLt = file.size / 10 / 1024 / 1024 < this.fileSize;
         if (!isLt) {
           this.$message.error(`上传头像图片大小不能超过 ${this.fileSize} MB!`);
           return false;