Commit 49c59863 authored by 陈明豪's avatar 陈明豪

bug修改

parent 748f2d7d
...@@ -175,7 +175,7 @@ export default { ...@@ -175,7 +175,7 @@ export default {
var img = file.name.substring(file.name.lastIndexOf('.') + 1) var img = file.name.substring(file.name.lastIndexOf('.') + 1)
const suffix = img === 'jpg' || img === 'png' || img === 'jpeg' const suffix = img === 'jpg' || img === 'png' || img === 'jpeg'
if (!suffix) { if (!suffix) {
this.$message.error('只能上传图片!') this.$message.error(`文件格式不正确, 请上传${this.fileType.join('/')}图片格式文件`)
return false return false
} }
// URL.createObjectURL的参数只能是blob或者file类型 // URL.createObjectURL的参数只能是blob或者file类型
......
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