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

29 lines
405 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 {
2017-10-31 13:43:55 +00:00
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>