fix: user cannot favorite article issue

This commit is contained in:
mutoe 2021-02-28 00:44:04 +08:00
parent 32d6bc7fb3
commit 9576f80fd8
1 changed files with 3 additions and 3 deletions

View File

@ -18,11 +18,11 @@
No articles are here... yet.
</div>
<template v-else>
<ArticlePreview
<ArticlesListArticlePreview
v-for="(article, index) in articles"
:key="article.slug"
:article="article"
@update="() => updateArticle(index, $event)"
@update="newArticle => updateArticle(index, newArticle)"
/>
<AppPagination
@ -43,7 +43,7 @@ import ArticlesListNavigation from './ArticlesListNavigation.vue'
export default defineComponent({
name: 'ArticlesList',
components: {
ArticlePreview: ArticlesListArticlePreview,
ArticlesListArticlePreview,
AppPagination,
ArticlesListNavigation,
},