From 5c2eeb7d333eaa149aefcae8210401a9093c0c6e Mon Sep 17 00:00:00 2001 From: tangjinzhou <415800467@qq.com> Date: Sun, 29 Aug 2021 14:09:15 +0800 Subject: [PATCH] fix: type error --- components/upload/Upload.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; }