fix(vc-image): remove repeat listener (#6945)

pull/6953/head
Konv Suu 2023-09-15 14:25:48 +08:00 committed by GitHub
parent 2f7f0e6928
commit 3c5fb84542
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 3 deletions

View File

@ -97,9 +97,6 @@ const ImageInternal = defineComponent({
onChange: onPreviewVisibleChange, onChange: onPreviewVisibleChange,
}); });
watch(isShowPreview, (val, preVal) => {
onPreviewVisibleChange(val, preVal);
});
const status = ref<ImageStatus>(isCustomPlaceholder.value ? 'loading' : 'normal'); const status = ref<ImageStatus>(isCustomPlaceholder.value ? 'loading' : 'normal');
watch( watch(
() => props.src, () => props.src,