mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-14 10:04:05 +00:00
13 lines
188 B
Vue
13 lines
188 B
Vue
<template>
|
|
<h1>User: {{ id }}</h1>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
asyncData({ params, payload }) {
|
|
if (payload) return payload
|
|
return { id: params.id }
|
|
}
|
|
}
|
|
</script>
|