2017-04-14 14:47:21 +00:00
|
|
|
<template>
|
2017-10-19 08:56:00 +00:00
|
|
|
<Child :env="env" ></Child>
|
2017-04-14 14:47:21 +00:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
import Vue from 'vue'
|
|
|
|
import Component from 'nuxt-class-component'
|
2017-10-19 08:56:00 +00:00
|
|
|
import Child from '@/components/Child'
|
2017-04-14 14:47:21 +00:00
|
|
|
|
2017-10-19 08:56:00 +00:00
|
|
|
@Component({
|
|
|
|
components: { Child }
|
|
|
|
})
|
2017-04-14 14:47:21 +00:00
|
|
|
export default class App extends Vue {
|
2017-10-31 13:43:55 +00:00
|
|
|
asyncData({ req }) {
|
2017-04-14 14:47:21 +00:00
|
|
|
return { env: req ? 'server' : 'client' }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|