fetching blogs and articles

This commit is contained in:
thomas
2020-02-27 20:22:03 +01:00
parent 97a8b136f0
commit c00452f3d0
10 changed files with 136 additions and 20 deletions
+8 -1
View File
@@ -12,7 +12,14 @@
<script>
import TheNavbar from '../components/TheNavbar'
export default {
components: { TheNavbar }
components: { TheNavbar },
asyncData ({ $shopify }) {
return $shopify.collection.fetchAllWithProducts().then((collections) => {
return {
collections
}
})
}
}
</script>