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