|
@@ -160,7 +160,7 @@ export default {
|
|
}
|
|
}
|
|
|
|
|
|
if (!isImg) {
|
|
if (!isImg) {
|
|
- this.$message.error(
|
|
|
|
|
|
+ this.$message.warning(
|
|
`文件格式不正确, 请上传${this.fileType.join("/")}图片格式文件!`
|
|
`文件格式不正确, 请上传${this.fileType.join("/")}图片格式文件!`
|
|
);
|
|
);
|
|
return false;
|
|
return false;
|
|
@@ -168,7 +168,7 @@ export default {
|
|
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.$message.error(`上传头像图片大小不能超过 ${this.fileSize} MB!`);
|
|
|
|
|
|
+ this.$message.warning(`上传头像图片大小不能超过 ${this.fileSize} MB!`);
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -180,7 +180,7 @@ export default {
|
|
},
|
|
},
|
|
// 文件个数超出
|
|
// 文件个数超出
|
|
handleExceed() {
|
|
handleExceed() {
|
|
- this.$message.error(`上传文件数量不能超过 ${this.limit} 个!`);
|
|
|
|
|
|
+ this.$message.warning(`上传文件数量不能超过 ${this.limit} 个!`);
|
|
},
|
|
},
|
|
// 上传失败
|
|
// 上传失败
|
|
handleUploadError(res) {
|
|
handleUploadError(res) {
|