when I use \nuxt\strapi\ nuxt/apollo,it always told Cannot read property 'content' of undefined. if I refresh the page it works!
why?
how can I do for it?
here is my codes
<template>
<div>
<div class="about-content">
<div id="zwqkl" v-html="$md.render(aboutuses[0].content)"></div>
</div>
</div>
</template>
<script>
import aboutusQuery from '~/apollo/queries/aboutus/aboutus'
export default {
name: 'about-us',
data() {
return {
aboutuses: []
}
},
apollo: {
aboutuses: {
query: aboutusQuery
}
}
}
</script>