|
@@ -1,8 +1,8 @@
|
|
|
<template>
|
|
|
<section class="app-main">
|
|
|
<transition name="fade-transform" mode="out-in">
|
|
|
- <keep-alive :include="cachedViews">
|
|
|
- <router-view :key="key" />
|
|
|
+ <keep-alive>
|
|
|
+ <router-view />
|
|
|
</keep-alive>
|
|
|
</transition>
|
|
|
</section>
|
|
@@ -10,17 +10,17 @@
|
|
|
|
|
|
<script>
|
|
|
export default {
|
|
|
- name: 'AppMain',
|
|
|
+ name: "AppMain",
|
|
|
computed: {
|
|
|
cachedViews() {
|
|
|
// console.log(this.$store.state.tagsView.cachedViews);
|
|
|
- return this.$store.state.tagsView.cachedViews
|
|
|
+ return this.$store.state.tagsView.cachedViews;
|
|
|
},
|
|
|
key() {
|
|
|
- return this.$route.path
|
|
|
- }
|
|
|
- }
|
|
|
-}
|
|
|
+ return this.$route.path;
|
|
|
+ },
|
|
|
+ },
|
|
|
+};
|
|
|
</script>
|
|
|
|
|
|
<style scoped>
|
|
@@ -31,7 +31,7 @@ export default {
|
|
|
position: relative;
|
|
|
overflow: hidden;
|
|
|
}
|
|
|
-.fixed-header+.app-main {
|
|
|
+.fixed-header + .app-main {
|
|
|
/* padding-top: 50px; */
|
|
|
padding-top: 80px;
|
|
|
}
|