mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-14 10:04:05 +00:00
0337932115
Co-authored-by: Sébastien Chopin <seb@nuxtjs.com> Co-authored-by: Alexander Lichter <manniL@gmx.net>
31 lines
488 B
Vue
31 lines
488 B
Vue
<template>
|
|
<pre v-text="JSON.stringify(config, null, 2)" />
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
asyncData ({ $config }) {
|
|
return {
|
|
serverConfig: $config
|
|
}
|
|
},
|
|
data () {
|
|
return {
|
|
clientConfig: { please: 'wait' }
|
|
}
|
|
},
|
|
computed: {
|
|
config () {
|
|
return {
|
|
client: this.clientConfig,
|
|
server: this.serverConfig,
|
|
$config: this.$config
|
|
}
|
|
}
|
|
},
|
|
mounted () {
|
|
this.clientConfig = this.$config
|
|
}
|
|
}
|
|
</script>
|