Fix: fix article list observer
This commit is contained in:
parent
4825289175
commit
c64240e509
@ -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();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user