misskey/src/client/pages/index.vue

32 lines
502 B
Vue
Raw Normal View History

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