diff --git a/mall4v/src/components/file-upload/index.vue b/mall4v/src/components/file-upload/index.vue index 8cf2cfc..8584ba4 100644 --- a/mall4v/src/components/file-upload/index.vue +++ b/mall4v/src/components/file-upload/index.vue @@ -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 }, diff --git a/mall4v/src/components/pic-upload/index.vue b/mall4v/src/components/pic-upload/index.vue index 3680c2f..53d5de3 100644 --- a/mall4v/src/components/pic-upload/index.vue +++ b/mall4v/src/components/pic-upload/index.vue @@ -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 }