Skip to content

Commit a602aa5

Browse files
authored
fix(file-upload): 修复上传组件accept为空报错问题 (#3529)
1 parent aad34ce commit a602aa5

File tree

1 file changed

+2
-0
lines changed
  • packages/renderless/src/file-upload

1 file changed

+2
-0
lines changed

packages/renderless/src/file-upload/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,8 @@ export const beforeUpload =
272272
if (accept) {
273273
const isExist = isAcceptType(acceptArray, f, constants, type)
274274
isExist ? fileRow.push(f) : remove({ api, file: f, autoRemove })
275+
} else {
276+
fileRow.push(f)
275277
}
276278
return type
277279
})

0 commit comments

Comments
 (0)