|
@@ -266,7 +266,8 @@ export default {
|
|
|
}
|
|
|
return true
|
|
|
}
|
|
|
- const isType = file.type.indexOf(this.fileType) >= 0 && file.type != ''
|
|
|
+ console.log(file, this.fileType)
|
|
|
+ const isType = this.fileType.indexOf(file.type) >= 0 && file.type != ''
|
|
|
if (!isType) {
|
|
|
if (tip != 0) {
|
|
|
this.$message.error('请上传正确的格式!')
|