图片上传-提示信息修改

master
cl 5 years ago
parent 045444d653
commit 3791e03514

@ -51,7 +51,7 @@
beforeAvatarUpload (file) {
const isLt2M = file.size / 1024 / 1024 < 2
if (!isLt2M) {
this.$message.error('上传头像图片大小不能超过 2MB!')
this.$message.error('上传图片大小不能超过 2MB!')
}
return isLt2M
},

@ -35,7 +35,7 @@
beforeAvatarUpload (file) {
const isLt2M = file.size / 1024 / 1024 < 2
if (!isLt2M) {
this.$message.error('上传头像图片大小不能超过 2MB!')
this.$message.error('上传图片大小不能超过 2MB!')
}
return isLt2M
}

Loading…
Cancel
Save