mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-24 22:55:13 +00:00
25 lines
421 B
Vue
25 lines
421 B
Vue
<template>
|
|
<div class="container">
|
|
<img :src="thumbnailUrl" />
|
|
<p><nuxt-link to="/">Home</nuxt-link> - About</p>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import axios from 'axios'
|
|
|
|
export default {
|
|
data () {
|
|
return axios.get('http://jsonplaceholder.typicode.com/photos/4').then(res => res.data)
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style>
|
|
.container {
|
|
text-align: center;
|
|
padding-top: 100px;
|
|
font-family: sans-serif;
|
|
}
|
|
</style>
|