fix: ui
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user