mirror of
https://github.com/Nezumi-2711/Sink.git
synced 2026-09-22 13:48:35 +00:00
Merge pull request #13 from QuentinHsu/fix-links-loading-on-mobile
fix: the links data loading on the mobile page did not trigger
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ export default withNuxt(
|
|||||||
'@typescript-eslint/ban-ts-comment': 'off',
|
'@typescript-eslint/ban-ts-comment': 'off',
|
||||||
'no-console': 'off',
|
'no-console': 'off',
|
||||||
'node/prefer-global/process': 'off',
|
'node/prefer-global/process': 'off',
|
||||||
|
'vue/no-v-html': 'off',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "sink",
|
"name": "sink",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "0.1.0",
|
"version": "0.1.1",
|
||||||
"private": true,
|
"private": true,
|
||||||
"packageManager": "pnpm@9.1.2",
|
"packageManager": "pnpm@9.1.2",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Reference in New Issue
Block a user