fix: resolve with incorrect order of video list after refresh data

This commit is contained in:
Hakadao
2024-01-30 00:06:52 +08:00
parent 1926faa9f2
commit 0a064e576b
2 changed files with 9 additions and 1 deletions

View File

@@ -32,8 +32,12 @@ function initPageAction() {
await getFollowedUsersVideos()
}
handlePageRefresh.value = async () => {
videoList.length = 0
if (isLoading.value)
return
offset.value = ''
updateBaseline.value = ''
videoList.length = 0
noMoreContent.value = false
for (let i = 0; i < 3; i++)

View File

@@ -24,7 +24,11 @@ function initPageAction() {
await getFollowedUsersVideos()
}
handlePageRefresh.value = async () => {
if (isLoading.value)
return
offset.value = ''
updateBaseline.value = ''
momentList.length = 0
noMoreContent.value = false
noMoreContentWarning.value = false