fix(Image): failed to display loading when using lazy-load (#11809)

This commit is contained in:
neverland
2023-05-03 22:18:46 +08:00
committed by GitHub
parent 5874fc787e
commit 7726eee160

View File

@@ -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();
}
});