2017-04-14 14:47:21 +00:00
|
|
|
<template>
|
2018-07-12 12:03:50 +00:00
|
|
|
<Child :env="env" />
|
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
|
|
|
|
2018-08-10 13:45:58 +00:00
|
|
|
export default
|
2017-10-19 08:56:00 +00:00
|
|
|
@Component({
|
|
|
|
components: { Child }
|
|
|
|
})
|
2018-08-10 13:45:58 +00:00
|
|
|
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>
|