diff options
author | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2019-12-05 17:34:44 +0100 |
---|---|---|
committer | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2019-12-05 17:34:44 +0100 |
commit | 29a4e2488151861c10abeb0a05622e4d06e07c60 (patch) | |
tree | c237820ce1f7588d44820f64163bc0caaa693d7f /pages/index.vue | |
parent | 6a532274bf7d69cefe9e640274f30c3fdcc17c92 (diff) | |
download | puszcza-29a4e2488151861c10abeb0a05622e4d06e07c60.tar.gz puszcza-29a4e2488151861c10abeb0a05622e4d06e07c60.zip |
Fix SSR on PostList
Diffstat (limited to 'pages/index.vue')
-rw-r--r-- | pages/index.vue | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pages/index.vue b/pages/index.vue index 3a19237..045025d 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -3,7 +3,7 @@ <join-us /> <div style="width: 100%; padding-top: 50px"> <h1>Ostatnie wpisy z kroniki</h1> - <post-list :max="4" /> + <post-list :posts="posts" :max="4" /> </div> <facebook-feed /> </div> @@ -13,9 +13,11 @@ import JoinUs from '~/components/JoinUs.vue' import FacebookFeed from '~/components/Facebook/FacebookFeed.vue' import PostList from '~/components/Posts/PostList' +import postListParentMixin from '~/components/Posts/PostList/parentMixin' export default { name: 'HomeView', - components: { JoinUs, FacebookFeed, PostList } + components: { JoinUs, FacebookFeed, PostList }, + mixins: [postListParentMixin] } </script> |