From 1f0191f7e80f1a21fe18651e4e47b389616c43bb Mon Sep 17 00:00:00 2001 From: yeling Date: Fri, 15 Sep 2023 10:02:51 +0000 Subject: [PATCH] fix: image-preview refresh problem --- .../arcodesign/components/image-preview/index.tsx | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/packages/arcodesign/components/image-preview/index.tsx b/packages/arcodesign/components/image-preview/index.tsx index e5f9ef2e..2b11bc6f 100644 --- a/packages/arcodesign/components/image-preview/index.tsx +++ b/packages/arcodesign/components/image-preview/index.tsx @@ -852,12 +852,14 @@ const ImagePreview = forwardRef((props: ImagePreviewProps, ref: Ref { + const newStatus = current.slice(); + newStatus[index] = { + ...(newStatus[index] || {}), + ...data, + }; + return newStatus; + }); } /**