Keep alive index page

This commit is contained in:
syuilo 2020-02-01 09:00:22 +09:00
parent 72f0e1c4df
commit 240a55a35a
2 changed files with 5 additions and 1 deletions

View file

@ -77,7 +77,9 @@
<main ref="main">
<div class="content">
<transition name="page" mode="out-in">
<keep-alive :include="['index']">
<router-view></router-view>
</keep-alive>
</transition>
</div>
<div class="powerd-by" :class="{ visible: !$store.getters.isSignedIn }">

View file

@ -7,6 +7,8 @@ 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),