Fix: fix article list observer

This commit is contained in:
jhynsoo 2024-05-23 17:21:24 +09:00
parent 4825289175
commit c64240e509

View File

@ -22,8 +22,7 @@ watch(lastElement, (el) => {
} }
const observer = new IntersectionObserver( const observer = new IntersectionObserver(
([entry]) => { ([entry]) => {
if (entry.isIntersecting && hasNextPage.value) { if (entry.isIntersecting && articles.value.length && hasNextPage.value) {
// params.pageNo += 1;
currentPage.value += 1; currentPage.value += 1;
searchList(); searchList();
} }