chore: lgfm

This commit is contained in:
Hakadao
2023-07-19 01:32:13 +08:00
parent d6c3b42f3b
commit 6191e17d69
5 changed files with 19 additions and 12 deletions

View File

@@ -33,19 +33,24 @@ onMounted(async () => {
}
}, 200)
emitter.off('reachBottom')
emitter.on('reachBottom', () => {
if (!isLoading.value) {
if (settings.value.recommendationMode === 'web') {
getRecommendVideos()
}
else {
for (let i = 0; i < 3; i++)
getAppRecommendVideos()
// for (let i = 0; i < 3; i++)
getAppRecommendVideos()
}
}
})
})
onUnmounted(() => {
emitter.off('reachBottom')
})
async function getRecommendVideos() {
isLoading.value = true
try {