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
+27 -2
View File
@@ -1,12 +1,37 @@
<template>
<div class="container">
<h1>Privacy Policy</h1>
<policy-page
:policy="policy"
/>
</div>
</template>
<script>
import PolicyPage from '../../../components/PolicyPage'
export default {
name: 'Index'
name: 'Index',
components: {
PolicyPage
},
asyncData ({ app }) {
return app.$axios({
method: 'POST',
data: {
query: `query {
shop {
privacyPolicy {
title,
body
}
}
}`
}
}).then((response) => {
return {
policy: response.data.data.shop.privacyPolicy
}
})
}
}
</script>