From 2a464e94a48f6518b705167b1775a2e6b4b9a6d0 Mon Sep 17 00:00:00 2001 From: ltinerary <948615201@qq.com> Date: Wed, 7 Sep 2022 21:04:36 +0800 Subject: [PATCH] =?UTF-8?q?Fixed=20a=20flash=20of=20pictures=20when=20prev?= =?UTF-8?q?iewing=20was=20turned=20off=20=E2=9C=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/vc-image/src/PreviewGroup.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } },