1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2024-12-16 23:58:59 +09:00
cherrypick/src/client/pages/index.vue
2020-02-01 09:12:04 +09:00

32 lines
502 B
Vue

<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>