Commit 95e265d3 authored by 盖献康's avatar 盖献康

bug(64580)

parent caca5dcd
......@@ -119,7 +119,7 @@ export default {
const fileExt = fileName[fileName.length - 1]
const isTypeOk = this.fileType.indexOf(fileExt) >= 0
if (!isTypeOk) {
this.$modal.msgError(`文件格式不正确, 请上传${this.fileType.join('/')}格式文件!`)
this.$modal.msgError(`文件格式不正确, 请上传${this.fileType.join('/')}格式文件`)
return false
}
}
......@@ -127,7 +127,7 @@ export default {
if (this.fileSize) {
const isLt = file.size / 1024 / 1024 < this.fileSize
if (!isLt) {
this.$modal.msgError(`上传文件大小不能超过 ${this.fileSize} MB!`)
this.$modal.msgError(`上传文件大小不能超过 ${this.fileSize} MB`)
return false
}
}
......@@ -137,7 +137,7 @@ export default {
},
// 文件个数超出
handleExceed() {
this.$modal.msgError(`上传文件数量不能超过 ${this.limit}!`)
this.$modal.msgError(`上传文件数量不能超过 ${this.limit} 个`)
},
// 上传失败
// eslint-disable-next-line handle-callback-err
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment