From dda19697d6f036c2c6e8a053cd987fb50069fb69 Mon Sep 17 00:00:00 2001 From: QuentinHsu Date: Sun, 2 Jun 2024 22:18:18 +0800 Subject: [PATCH] fix: the links data loading on the mobile page did not trigger --- components/dashboard/links/Index.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/components/dashboard/links/Index.vue b/components/dashboard/links/Index.vue index a1c076a..a9f5b5a 100644 --- a/components/dashboard/links/Index.vue +++ b/components/dashboard/links/Index.vue @@ -22,7 +22,7 @@ async function getLinks() { const { isLoading } = useInfiniteScroll( document, getLinks, - { distance: 10, interval: 1000, canLoadMore: () => !listComplete }, + { distance: 150, interval: 1000, canLoadMore: () => !listComplete }, ) function updateLinkList(link, type) { @@ -59,5 +59,11 @@ function updateLinkList(link, type) { > +
+ No more +