mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-05 13:43:59 +00:00
29 lines
437 B
Vue
29 lines
437 B
Vue
<template>
|
|
<div class="container">
|
|
<p>Hello {{ name }}!</p>
|
|
<NuxtLink to="/about">
|
|
Go to /about
|
|
</NuxtLink>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
asyncData() {
|
|
return new Promise((resolve) => {
|
|
setTimeout(function () {
|
|
resolve({ name: 'world' })
|
|
}, 1000)
|
|
})
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style scoped>
|
|
.container {
|
|
font-size: 20px;
|
|
text-align: center;
|
|
padding-top: 100px;
|
|
}
|
|
</style>
|