update apps/web-antd/src/components/upload/src/hook.ts.

fix: 上传组件清空绑定值时,同时清空innerFileList,避免外部使用时还能读取到

Signed-off-by: 哦是吗 <1733179386@qq.com>
This commit is contained in:
哦是吗 2025-05-15 07:38:02 +00:00 committed by Gitee
parent cd4706b717
commit 1f50c95c66
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -322,6 +322,8 @@ export function useUpload(
() => bindValue.value,
async (value) => {
if (value.length === 0) {
// 清空绑定值时同时清空innerFileList避免外部使用时还能读取到
innerFileList.value = [];
return;
}