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