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(
|
||||
([entry]) => {
|
||||
if (entry.isIntersecting && hasNextPage.value) {
|
||||
// params.pageNo += 1;
|
||||
if (entry.isIntersecting && articles.value.length && hasNextPage.value) {
|
||||
currentPage.value += 1;
|
||||
searchList();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user