Nuxt/test/fixtures/full-static/pages/payload.vue
Pooya Parsa a82f8d8b1f
feat(generator): export:route hook and setPayload (#7422)
* feat(generator): shared payload support for `nuxt export`

* feat: add `export:` hooks for upward compatibility

* fix: use setPayload to avoid breaking usage

* test: update test

* fix: deep assign

* chore: update tests

* fix: route payload has more periority than shared one

* test: update generator hook tests

* lint: remove unnecessary import
2020-05-27 16:51:51 +02:00

14 lines
170 B
Vue

<template>
<div v-text="JSON.stringify(payload)" />
</template>
<script>
export default {
asyncData ({ payload }) {
return {
payload
}
}
}
</script>