|
@@ -174,12 +174,14 @@ export default {
|
|
|
this.$modal.msgError(
|
|
this.$modal.msgError(
|
|
|
`文件格式不正确, 请上传${this.fileType.join("/")}图片格式文件!`
|
|
`文件格式不正确, 请上传${this.fileType.join("/")}图片格式文件!`
|
|
|
);
|
|
);
|
|
|
|
|
+ this.isVisible = true;
|
|
|
return false;
|
|
return false;
|
|
|
}
|
|
}
|
|
|
if (this.fileSize) {
|
|
if (this.fileSize) {
|
|
|
const isLt = file.size / 1024 / 1024 < this.fileSize;
|
|
const isLt = file.size / 1024 / 1024 < this.fileSize;
|
|
|
if (!isLt) {
|
|
if (!isLt) {
|
|
|
this.$modal.msgError(`上传头像图片大小不能超过 ${this.fileSize} MB!`);
|
|
this.$modal.msgError(`上传头像图片大小不能超过 ${this.fileSize} MB!`);
|
|
|
|
|
+ this.isVisible = true;
|
|
|
return false;
|
|
return false;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|