|
@@ -1,9 +1,9 @@
|
|
|
<template>
|
|
|
<section class="app-main">
|
|
|
<transition name="fade-transform" mode="out-in">
|
|
|
- <!-- <keep-alive :include="cachedViews"> -->
|
|
|
+ <keep-alive :include="cachedViews">
|
|
|
<router-view :key="key" />
|
|
|
- <!-- </keep-alive> -->
|
|
|
+ </keep-alive>
|
|
|
</transition>
|
|
|
</section>
|
|
|
</template>
|
|
@@ -13,10 +13,10 @@ export default {
|
|
|
name: 'AppMain',
|
|
|
computed: {
|
|
|
cachedViews() {
|
|
|
+ // console.log(this.$store.state.tagsView.cachedViews);
|
|
|
return this.$store.state.tagsView.cachedViews
|
|
|
},
|
|
|
key() {
|
|
|
- console.log(this.$route.path);
|
|
|
return this.$route.path
|
|
|
}
|
|
|
}
|