mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-14 10:04:05 +00:00
18 lines
241 B
Vue
18 lines
241 B
Vue
<template>
|
|
<div>
|
|
<h1>Dog</h1>
|
|
<img :src="dog" />
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
async asyncData({ app }) {
|
|
const { data: { message: dog } } = await app.$axios.get('/dog')
|
|
return { dog }
|
|
}
|
|
}
|
|
</script>
|