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