mirror of
https://github.com/nagisa77/OpenIsle.git
synced 2026-08-23 19:37:13 +00: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 === '排行榜') {
|
if (selectedTopic.value === '排行榜') {
|
||||||
fetchRanking(reset)
|
fetchRanking(reset)
|
||||||
} else if (selectedTopic.value === '最新回复') {
|
} else if (selectedTopic.value === '最新回复') {
|
||||||
@@ -362,8 +362,8 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
await loadOptions()
|
|
||||||
fetchContent()
|
fetchContent()
|
||||||
|
await loadOptions()
|
||||||
})
|
})
|
||||||
|
|
||||||
watch([selectedCategory, selectedTags], () => {
|
watch([selectedCategory, selectedTags], () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user