From 1f50c95c6642c6fe76791263945ea881a0140fd7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=93=A6=E6=98=AF=E5=90=97?= <1733179386@qq.com> Date: Thu, 15 May 2025 07:38:02 +0000 Subject: [PATCH] =?UTF-8?q?update=20apps/web-antd/src/components/upload/sr?= =?UTF-8?q?c/hook.ts.=20fix:=20=E4=B8=8A=E4=BC=A0=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=E6=B8=85=E7=A9=BA=E7=BB=91=E5=AE=9A=E5=80=BC=E6=97=B6=EF=BC=8C?= =?UTF-8?q?=E5=90=8C=E6=97=B6=E6=B8=85=E7=A9=BAinnerFileList=EF=BC=8C?= =?UTF-8?q?=E9=81=BF=E5=85=8D=E5=A4=96=E9=83=A8=E4=BD=BF=E7=94=A8=E6=97=B6?= =?UTF-8?q?=E8=BF=98=E8=83=BD=E8=AF=BB=E5=8F=96=E5=88=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 哦是吗 <1733179386@qq.com> --- apps/web-antd/src/components/upload/src/hook.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/web-antd/src/components/upload/src/hook.ts b/apps/web-antd/src/components/upload/src/hook.ts index 938114df..f7451518 100644 --- a/apps/web-antd/src/components/upload/src/hook.ts +++ b/apps/web-antd/src/components/upload/src/hook.ts @@ -322,6 +322,8 @@ export function useUpload( () => bindValue.value, async (value) => { if (value.length === 0) { + // 清空绑定值时,同时清空innerFileList,避免外部使用时还能读取到 + innerFileList.value = []; return; }