From 28a94fe1f89cd701f1c1312856ed4a32a4906e29 Mon Sep 17 00:00:00 2001 From: ocean-gao Date: Tue, 20 Jun 2023 10:14:21 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A7=A3=E5=86=B3=E4=B8=8A=E4=BC=A0?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=EF=BC=8C=E5=88=9D=E5=A7=8B=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E4=B8=BA=E7=A9=BA=E6=97=B6=E6=B8=85=E7=A9=BA=E6=97=A0=E6=95=88?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/upload/useUpload.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/upload/useUpload.ts b/components/upload/useUpload.ts index fc92154c..f2af5b84 100644 --- a/components/upload/useUpload.ts +++ b/components/upload/useUpload.ts @@ -269,7 +269,7 @@ export default (props: UploadProps, emit: any) => { watch( () => props.fileList, (fileList) => { - if (!isEqual(cachedFiles, fileList)) { + if (!isEqual(cachedFiles, fileList) || fileList.length === 0) { cachedFiles = []; uploadFiles.value = fileList.map((file) => { const cloneFile = cloneDeep(file);