policy pages added

This commit is contained in:
thomas
2020-03-02 20:25:29 +01:00
parent 560363e577
commit dceffdca5b
13 changed files with 227 additions and 62 deletions
+40
View File
@@ -0,0 +1,40 @@
<template>
<div class="container">
<policy-page
:policy="policy"
/>
</div>
</template>
<script>
import PolicyPage from '../../../components/PolicyPage'
export default {
name: 'Index',
components: {
PolicyPage
},
asyncData ({ app }) {
return app.$axios({
method: 'POST',
data: {
query: `query {
shop {
termsOfService {
title,
body
}
}
}`
}
}).then((response) => {
return {
policy: response.data.data.shop.termsOfService
}
})
}
}
</script>
<style scoped>
</style>