blob: 788df3929aa13c575db5ce7a26c5e2cffb545900 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
<template>
<component :is="$store.getters.isSignedIn ? 'home' : 'welcome'" :show-title="showTitle"></component>
</template>
<script lang="ts">
import Vue from 'vue';
import Home from './index.home.vue';
export default Vue.extend({
name: 'index',
components: {
Home,
Welcome: () => import('./index.welcome.vue').then(m => m.default),
},
data() {
return {
showTitle: true,
}
},
activated() {
this.showTitle = true;
},
deactivated() {
this.showTitle = false;
}
});
</script>
|