mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-30 17:37:14 +00:00
a82f8d8b1f
* 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
14 lines
170 B
Vue
14 lines
170 B
Vue
<template>
|
|
<div v-text="JSON.stringify(payload)" />
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
asyncData ({ payload }) {
|
|
return {
|
|
payload
|
|
}
|
|
}
|
|
}
|
|
</script>
|