From a0bf8485dded6397e09a1da38e4b1273992f5113 Mon Sep 17 00:00:00 2001 From: Hakadao Date: Mon, 28 Oct 2024 10:09:02 +0800 Subject: [PATCH] fix(live): prevent continuous loading when no more content --- src/contentScripts/views/Home/components/Live.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/contentScripts/views/Home/components/Live.vue b/src/contentScripts/views/Home/components/Live.vue index 10549ae5..b4d56057 100644 --- a/src/contentScripts/views/Home/components/Live.vue +++ b/src/contentScripts/views/Home/components/Live.vue @@ -105,6 +105,7 @@ async function getFollowedUsersVideos() { const response: FollowingLiveResult = await api.live.getFollowingLiveList({ page: page.value, + page_size: 9, }) if (response.code === -101) { @@ -114,6 +115,9 @@ async function getFollowedUsersVideos() { } if (response.code === 0) { + if (response.data.list.length < 9) + noMoreContent.value = true + page.value++ const resData = [] as FollowingLiveItem[]