fix(file-upload): 修复上传组件accept为空报错问题 (#3529)
This commit is contained in:
parent
aad34cecdb
commit
a602aa5653
|
@ -272,6 +272,8 @@ export const beforeUpload =
|
||||||
if (accept) {
|
if (accept) {
|
||||||
const isExist = isAcceptType(acceptArray, f, constants, type)
|
const isExist = isAcceptType(acceptArray, f, constants, type)
|
||||||
isExist ? fileRow.push(f) : remove({ api, file: f, autoRemove })
|
isExist ? fileRow.push(f) : remove({ api, file: f, autoRemove })
|
||||||
|
} else {
|
||||||
|
fileRow.push(f)
|
||||||
}
|
}
|
||||||
return type
|
return type
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue