Files
2020-03-03 20:45:44 +01:00

46 lines
760 B
Vue

<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
}
})
},
head () {
return {
title: 'Terms of services'
}
}
}
</script>
<style scoped>
</style>