You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
401 B
Vue
19 lines
401 B
Vue
<template>
|
|
<div>
|
|
<h1>{{ data.title }}</h1>
|
|
<img :src="'http://localhost:1337' + data.cover.url" alt="" />
|
|
<div>{{ data.description }}</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
async asyncData({ $strapi }) {
|
|
const post = await $strapi.find('functions')
|
|
const data = await $strapi.find('sp-16')
|
|
console.log(post, data)
|
|
return { post, data }
|
|
},
|
|
}
|
|
</script>
|