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

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

Signed-off-by: 哦是吗 <1733179386@qq.com>
master
哦是吗 8 months ago committed by Gitee
parent cd4706b717
commit 1f50c95c66
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

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

Loading…
Cancel
Save