policy pages added
This commit is contained in:
@@ -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 {
|
||||
refundPolicy {
|
||||
title,
|
||||
body
|
||||
}
|
||||
}
|
||||
}`
|
||||
}
|
||||
}).then((response) => {
|
||||
return {
|
||||
policy: response.data.data.shop.refundPolicy
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
||||
Reference in New Issue
Block a user