瀏覽代碼

大小限制修改

xdd 1 月之前
父節點
當前提交
4fcbe1302b
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/views/store/adv/index.vue

+ 1 - 1
src/views/store/adv/index.vue

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