@@ -266,7 +266,7 @@ export default {
}
return true
- const isType = this.fileType.indexOf(file.type) >= 0 && file.type != ''
+ const isType = file.name.indexOf(this.fileType) >= 0 && file.type != ''
if (!isType) {
if (tip != 0) {
this.$message.error('请上传正确的格式!')
@@ -24,7 +24,7 @@
uploadType="attach"
:action="attachAction"
upText="添加文件"
- fileType="PDF"
+ fileType="pdf"
@change="changeImport"></Upload>
<div style="color:#999999;">(只支持PDF格式,最多10个附件)</div>
</a-form-model-item>