fun
This commit is contained in:
parent
1986621d4c
commit
87d004b60c
|
@ -126,7 +126,7 @@
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.getUP();
|
this.getUP();
|
||||||
localStorage.setItem('tolerance','0.42');
|
localStorage.setItem('tolerance','0.36');
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
$route: {
|
$route: {
|
||||||
|
|
|
@ -333,9 +333,9 @@ export default {
|
||||||
this.user.avatar = res.data.path;
|
this.user.avatar = res.data.path;
|
||||||
},
|
},
|
||||||
beforeAvatarUpload(file) {
|
beforeAvatarUpload(file) {
|
||||||
const isLt2M = file.size / 1024 / 1024 < 5;
|
const isLt2M = file.size / 1024 / 1024 < 10;
|
||||||
if (!isLt2M) {
|
if (!isLt2M) {
|
||||||
this.$message.error("上传头像图片大小不能超过 5MB!");
|
this.$message.error("上传头像图片大小不能超过 10MB!");
|
||||||
}
|
}
|
||||||
return isLt2M;
|
return isLt2M;
|
||||||
},
|
},
|
||||||
|
@ -344,9 +344,9 @@ export default {
|
||||||
return data.label.indexOf(value) !== -1;
|
return data.label.indexOf(value) !== -1;
|
||||||
},
|
},
|
||||||
beforeUpload(file) {
|
beforeUpload(file) {
|
||||||
const isLt1M = file.size / 1024 / 1024 < 5;
|
const isLt1M = file.size / 1024 / 1024 < 10;
|
||||||
if (!isLt1M) {
|
if (!isLt1M) {
|
||||||
this.$message.error("上传头像图片大小不能超过 5MB!");
|
this.$message.error("上传头像图片大小不能超过 10MB!");
|
||||||
}
|
}
|
||||||
return isLt1M;
|
return isLt1M;
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue