2018-02-10 07:56:33 +02:00
|
|
|
<template>
|
2020-02-01 02:12:04 +02:00
|
|
|
<component :is="$store.getters.isSignedIn ? 'home' : 'welcome'" :show-title="showTitle"></component>
|
2018-02-10 07:56:33 +02:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
|
|
import Vue from 'vue';
|
2020-01-29 21:37:25 +02:00
|
|
|
import Home from './index.home.vue';
|
2018-02-10 07:56:33 +02:00
|
|
|
|
|
|
|
export default Vue.extend({
|
2020-02-01 02:00:22 +02:00
|
|
|
name: 'index',
|
|
|
|
|
2018-02-10 07:56:33 +02:00
|
|
|
components: {
|
2018-02-20 18:39:51 +02:00
|
|
|
Home,
|
2020-01-29 21:37:25 +02:00
|
|
|
Welcome: () => import('./index.welcome.vue').then(m => m.default),
|
2020-02-01 02:12:04 +02:00
|
|
|
},
|
|
|
|
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
showTitle: true,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
activated() {
|
|
|
|
this.showTitle = true;
|
|
|
|
},
|
|
|
|
|
|
|
|
deactivated() {
|
|
|
|
this.showTitle = false;
|
2018-02-10 07:56:33 +02:00
|
|
|
}
|
|
|
|
});
|
|
|
|
</script>
|