bugfix: 修复首页可能会加载相同文章的问题

This commit is contained in:
Tim
2025-07-31 13:51:20 +08:00
parent d385ce8c54
commit 3ff94d0a5c

View File

@@ -344,7 +344,7 @@ export default {
}
}
const fetchContent = (reset = false) => {
const fetchContent = async (reset = false) => {
if (selectedTopic.value === '排行榜') {
fetchRanking(reset)
} else if (selectedTopic.value === '最新回复') {
@@ -362,8 +362,8 @@ export default {
}
onMounted(async () => {
await loadOptions()
fetchContent()
await loadOptions()
})
watch([selectedCategory, selectedTags], () => {