This commit is contained in:
syuilo
2020-02-01 09:12:04 +09:00
parent 38dded5061
commit 53f018aae6
3 changed files with 32 additions and 3 deletions

View File

@@ -1,5 +1,5 @@
<template>
<component :is="$store.getters.isSignedIn ? 'home' : 'welcome'"></component>
<component :is="$store.getters.isSignedIn ? 'home' : 'welcome'" :show-title="showTitle"></component>
</template>
<script lang="ts">
@@ -12,6 +12,20 @@ export default Vue.extend({
components: {
Home,
Welcome: () => import('./index.welcome.vue').then(m => m.default),
},
data() {
return {
showTitle: true,
}
},
activated() {
this.showTitle = true;
},
deactivated() {
this.showTitle = false;
}
});
</script>