1
0
mirror of https://github.com/misskey-dev/misskey synced 2024-12-26 04:28:28 +09:00
misskey/src/client/pages/index.vue

32 lines
502 B
Vue
Raw Normal View History

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