mirror of
https://github.com/BewlyBewly/BewlyBewly.git
synced 2025-04-14 13:15:29 +00:00
chore: lgfm
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user