日志修复

This commit is contained in:
limqhz
2021-03-28 14:36:42 +08:00
parent dbf34c9fd1
commit 966925e482
5 changed files with 9 additions and 11 deletions

View File

@@ -106,11 +106,11 @@ export default {
alert('已存在健康报告!')
},
beforeAvatarUpload(file) {
// const isLt2M = file.size / 1024 / 1024 < 2
// if (!isLt2M) {
// this.$message.error('上传头像图片大小不能超过 2MB!')
// }
// return isLt2M
const isLt40M = file.size / 1024 / 1024 < 40
if (!isLt40M) {
this.$message.error('上传报告不能超过40MB!')
}
return isLt40M
},
// 处理头像上传成功
handleAvatarSuccess(res) {