mirror of
https://github.com/BewlyBewly/BewlyBewly.git
synced 2025-04-14 13:15:29 +00:00
fix(live): prevent continuous loading when no more content
This commit is contained in:
@@ -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[]
|
||||
|
||||
Reference in New Issue
Block a user