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

@@ -47,10 +47,6 @@ useIntersectionObserver(
}
)
const showArticle = (id) => {
router.push(`/posts/${id}`)
}
onMounted(() => {
fetchArticles()
})
@@ -70,8 +66,9 @@ onMounted(() => {
暂无已购买
</div>
<ArticleListItem v-for="article in purchasedArticles" :key="article.id" :article="article"
@click="showArticle(article.id)" class="mb-4" />
<div v-for="article in purchasedArticles" :key="article.id" class="mb-4">
<ArticleListItem :article="{ ...article, bought: true }" />
</div>
<div ref="loadingTrigger" class="py-4 text-center" v-show="hasMore || loading">
<div v-if="loading"