diff --git a/mixins/moduleTransiton.js b/mixins/moduleTransiton.js index cdeb65b..42cf101 100644 --- a/mixins/moduleTransiton.js +++ b/mixins/moduleTransiton.js @@ -7,7 +7,7 @@ export default { mounted () { this.recoShowModule = true }, - destoryed () { + destroyed () { this.recoShowModule = false } } diff --git a/mixins/posts.js b/mixins/posts.js index 042032e..b05a054 100644 --- a/mixins/posts.js +++ b/mixins/posts.js @@ -7,8 +7,8 @@ export default { $categories: { list: articles } } = this - let posts = articles.reduce((allData, currnetData) => { - return [...allData, ...currnetData.pages] + let posts = articles.reduce((allData, currentData) => { + return [...allData, ...currentData.pages] }, []) posts = filterPosts(posts)