diff --git a/components/vc-image/src/PreviewGroup.tsx b/components/vc-image/src/PreviewGroup.tsx index 4047257ff3..6674990f28 100644 --- a/components/vc-image/src/PreviewGroup.tsx +++ b/components/vc-image/src/PreviewGroup.tsx @@ -150,7 +150,7 @@ const Group = defineComponent({ ); watchEffect( () => { - if (!isShowPreview.value && isControlled.value) { + if (isShowPreview.value && isControlled.value) { setCurrent(currentControlledKey.value); } },