From 8ce2f5744ca60d90647cd8fc3ad2a41846359bf5 Mon Sep 17 00:00:00 2001 From: Konv Suu <2583695112@qq.com> Date: Tue, 12 Sep 2023 16:43:18 +0800 Subject: [PATCH] fix(vc-image): remove repeat listener --- components/vc-image/src/Image.tsx | 3 --- 1 file changed, 3 deletions(-) diff --git a/components/vc-image/src/Image.tsx b/components/vc-image/src/Image.tsx index c835c840ee..5c68b8769e 100644 --- a/components/vc-image/src/Image.tsx +++ b/components/vc-image/src/Image.tsx @@ -97,9 +97,6 @@ const ImageInternal = defineComponent({ onChange: onPreviewVisibleChange, }); - watch(isShowPreview, (val, preVal) => { - onPreviewVisibleChange(val, preVal); - }); const status = ref(isCustomPlaceholder.value ? 'loading' : 'normal'); watch( () => props.src,