Files
shopify-storefront/pages/policy/refund-policy/index.vue
T
2020-03-02 20:25:29 +01:00

41 lines
687 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 {
refundPolicy {
title,
body
}
}
}`
}
}).then((response) => {
return {
policy: response.data.data.shop.refundPolicy
}
})
}
}
</script>
<style scoped>
</style>