mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 14:15:13 +00:00
19 lines
335 B
Vue
19 lines
335 B
Vue
<template>
|
|
<Child :env="env" ></Child>
|
|
</template>
|
|
|
|
<script>
|
|
import Vue from 'vue'
|
|
import Component from 'nuxt-class-component'
|
|
import Child from '@/components/Child'
|
|
|
|
@Component({
|
|
components: { Child }
|
|
})
|
|
export default class App extends Vue {
|
|
asyncData ({ req }) {
|
|
return { env: req ? 'server' : 'client' }
|
|
}
|
|
}
|
|
</script>
|