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(
([entry]) => {
if (entry.isIntersecting && hasNextPage.value) {
// params.pageNo += 1;
if (entry.isIntersecting && articles.value.length && hasNextPage.value) {
currentPage.value += 1;
searchList();
}