From 54aefe83b3e735e304a95f25669498625c8c663c Mon Sep 17 00:00:00 2001 From: ShineTomorrow Date: Tue, 10 Jan 2023 22:31:46 +0800 Subject: [PATCH] :bug: fix(infinite list): infinite List img src change to large2x --- src/libs/Infinite/index.vue | 5 ----- src/views/main/components/list/item.vue | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/src/libs/Infinite/index.vue b/src/libs/Infinite/index.vue index 2b60294..fc78298 100644 --- a/src/libs/Infinite/index.vue +++ b/src/libs/Infinite/index.vue @@ -43,10 +43,6 @@ const emitLoad = () => { // 触发 load,延迟处理,等待 渲染和 useIntersectionObserver 的再次触发 let timeout = setTimeout(() => { // 加载更多的视图可见时 不是加载中 还没加载完 处理加载跟多逻辑 - console.log('[ isIntersect.value ]', isIntersect.value); - console.log('[ !loading.value ]', !loading.value); - console.log('[ !props.isFinished ]', !props.isFinished); - console.log('[ ------------------------------------- ]'); if (isIntersect.value && !loading.value && !props.isFinished) { loading.value = true; emits('onload'); @@ -56,7 +52,6 @@ const emitLoad = () => { }; useIntersectionObserver(loadingTarget, ([{ isIntersecting }]) => { isIntersect.value = isIntersecting; - console.log('[ isIntersecting ]', isIntersecting); emitLoad(); }); diff --git a/src/views/main/components/list/item.vue b/src/views/main/components/list/item.vue index 41de2f6..01c0a04 100644 --- a/src/views/main/components/list/item.vue +++ b/src/views/main/components/list/item.vue @@ -11,7 +11,7 @@ ref="imgTarget" v-lazy :data-src=" - isMobileTerminal ? data?.src?.large : data?.src?.large2 + isMobileTerminal ? data?.src?.large : data?.src?.large2x " class="w-full bg-transparent" :style="{