From 87d004b60cdea0d44ff1c89aca270f3e7e866dbd Mon Sep 17 00:00:00 2001 From: shijing Date: Thu, 28 Apr 2022 10:39:04 +0800 Subject: [PATCH] fun --- hb_client/src/views/login/index.vue | 2 +- hb_client/src/views/personnel/userupdate.vue | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/hb_client/src/views/login/index.vue b/hb_client/src/views/login/index.vue index c92c074..414dbc3 100644 --- a/hb_client/src/views/login/index.vue +++ b/hb_client/src/views/login/index.vue @@ -126,7 +126,7 @@ }, created() { this.getUP(); - localStorage.setItem('tolerance','0.42'); + localStorage.setItem('tolerance','0.36'); }, watch: { $route: { diff --git a/hb_client/src/views/personnel/userupdate.vue b/hb_client/src/views/personnel/userupdate.vue index e277c8b..c8a03ad 100644 --- a/hb_client/src/views/personnel/userupdate.vue +++ b/hb_client/src/views/personnel/userupdate.vue @@ -333,9 +333,9 @@ export default { this.user.avatar = res.data.path; }, beforeAvatarUpload(file) { - const isLt2M = file.size / 1024 / 1024 < 5; + const isLt2M = file.size / 1024 / 1024 < 10; if (!isLt2M) { - this.$message.error("上传头像图片大小不能超过 5MB!"); + this.$message.error("上传头像图片大小不能超过 10MB!"); } return isLt2M; }, @@ -344,9 +344,9 @@ export default { return data.label.indexOf(value) !== -1; }, beforeUpload(file) { - const isLt1M = file.size / 1024 / 1024 < 5; + const isLt1M = file.size / 1024 / 1024 < 10; if (!isLt1M) { - this.$message.error("上传头像图片大小不能超过 5MB!"); + this.$message.error("上传头像图片大小不能超过 10MB!"); } return isLt1M; },