fix: the links data loading on the mobile page did not trigger
This commit is contained in:
parent
e4e6369f5c
commit
dda19697d6
1 changed files with 7 additions and 1 deletions
|
|
@ -22,7 +22,7 @@ async function getLinks() {
|
||||||
const { isLoading } = useInfiniteScroll(
|
const { isLoading } = useInfiniteScroll(
|
||||||
document,
|
document,
|
||||||
getLinks,
|
getLinks,
|
||||||
{ distance: 10, interval: 1000, canLoadMore: () => !listComplete },
|
{ distance: 150, interval: 1000, canLoadMore: () => !listComplete },
|
||||||
)
|
)
|
||||||
|
|
||||||
function updateLinkList(link, type) {
|
function updateLinkList(link, type) {
|
||||||
|
|
@ -59,5 +59,11 @@ function updateLinkList(link, type) {
|
||||||
>
|
>
|
||||||
<Loader class="animate-spin" />
|
<Loader class="animate-spin" />
|
||||||
</div>
|
</div>
|
||||||
|
<div
|
||||||
|
v-if="!isLoading && listComplete"
|
||||||
|
class="flex items-center justify-center text-sm"
|
||||||
|
>
|
||||||
|
No more
|
||||||
|
</div>
|
||||||
</main>
|
</main>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue