diff --git a/components/upload/Upload.tsx b/components/upload/Upload.tsx index 4e1041d73..45974e676 100644 --- a/components/upload/Upload.tsx +++ b/components/upload/Upload.tsx @@ -185,7 +185,10 @@ export default defineComponent({ if (result === false) { this.handleChange({ file, - fileList: uniqBy(stateFileList.concat(fileList.map(fileToObject)), item => item.uid), + fileList: uniqBy( + stateFileList.concat(fileList.map(fileToObject)), + (item: any) => item.uid, + ), }); return false; }