Browse Source

🐛 fix uploadList thumbUrl image type check

pull/12997/head
ycjcl868 6 years ago
committed by 偏右
parent
commit
ada43adc65
  1. 3
      components/upload/UploadList.tsx

3
components/upload/UploadList.tsx

@ -76,7 +76,8 @@ export default class UploadList extends React.Component<UploadListProps, any> {
typeof window === 'undefined' ||
!(window as any).FileReader || !(window as any).File ||
!(file.originFileObj instanceof File) ||
file.thumbUrl !== undefined) {
file.thumbUrl !== undefined ||
!imageTypes.includes(file.type)) {
return;
}
/*eslint-disable */

Loading…
Cancel
Save