Nuxt/examples/custom-loading/pages/about.vue

29 lines
406 B
Vue
Raw Normal View History

2016-11-11 14:30:11 +00:00
<template>
<div class="container">
<p>About Page</p>
<NuxtLink to="/">
Go to /
</NuxtLink>
2016-11-11 14:30:11 +00:00
</div>
</template>
<script>
export default {
asyncData () {
2016-11-11 14:30:11 +00:00
return new Promise((resolve) => {
setTimeout(function () {
resolve({})
}, 1000)
})
}
}
</script>
<style scoped>
.container {
font-size: 20px;
text-align: center;
padding-top: 100px;
}
</style>