blob: 64ecff8203e0674f240e8e25e278d813927849ea [file] [log] [blame]
<template>
<section class="app-main">
<transition name="fade" mode="out-in">
<!-- <router-view :key="key"></router-view> -->
<keep-alive :include="cachedViews">
<router-view :key="key"></router-view>
</keep-alive>
</transition>
</section>
</template>
<script>
export default {
name: 'AppMain',
computed: {
cachedViews() {
return this.$store.state.tagsView.cachedViews
},
key() {
return this.$route.fullPath
}
}
}
</script>
<style scoped>
.app-main {
/*50 = navbar */
min-height: calc(100vh - 84px);
position: relative;
overflow: hidden;
}
</style>