Fix bug
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user