mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-30 17:37:14 +00:00
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>
|