Nuxt/test/fixtures/basic/pages/users/_id.vue
pooya parsa e7cc2757c3 refactor: update eslint-config to 1.x
Co-authored-by: Alexander Lichter <manniL@gmx.net>
2019-07-10 15:15:49 +04:30

13 lines
193 B
Vue

<template>
<h1>User: {{ id }}</h1>
</template>
<script>
export default {
asyncData ({ params, payload }) {
if (payload) { return payload }
return { id: params.id }
}
}
</script>