Nuxt/test/fixtures/basic/pages/users/_id.vue
2017-10-31 14:26:19 +01:00

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>