This commit is contained in:
yanghao05
2025-04-29 10:15:36 +08:00
parent 75e39a0283
commit da8ad94eda
9 changed files with 232 additions and 35 deletions

View File

@@ -49,9 +49,6 @@ useIntersectionObserver(
}
)
const showArticle = (id) => {
router.push(`/posts/${id}`)
}
const handleSearch = () => {
articles.value = []
@@ -86,8 +83,8 @@ onMounted(() => {
暂无文章
</div>
<ArticleListItem v-for="article in articles" :key="article.id" :article="article"
@click="showArticle(article.id)" class="mb-4" />
<ArticleListItem v-for="article in articles" :key="article.id" :article="{ ...article, bought: true }"
class="mb-4" />
<div ref="loadingTrigger" class="py-4 text-center" v-show="hasMore || loading">
<div v-if="loading"