mirror of
https://github.com/nagisa77/OpenIsle.git
synced 2026-02-28 17:10:48 +08:00
bugfix: 修复首页可能会加载相同文章的问题
This commit is contained in:
@@ -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], () => {
|
||||
|
||||
Reference in New Issue
Block a user