From 7726eee160ac9ce7184191dcf24c91cf71eac328 Mon Sep 17 00:00:00 2001 From: neverland Date: Wed, 3 May 2023 22:18:46 +0800 Subject: [PATCH] fix(Image): failed to display loading when using lazy-load (#11809) --- packages/vant/src/image/Image.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/vant/src/image/Image.tsx b/packages/vant/src/image/Image.tsx index b80e34033..7b3456716 100644 --- a/packages/vant/src/image/Image.tsx +++ b/packages/vant/src/image/Image.tsx @@ -214,7 +214,7 @@ export default defineComponent({ // https://github.com/youzan/vant/issues/11335 onMounted(() => { nextTick(() => { - if (imageRef.value?.complete) { + if (imageRef.value?.complete && !props.lazyLoad) { triggerLoad(); } });