howie 3 anni fa
parent
commit
4197609613
1 ha cambiato i file con 3 aggiunte e 2 eliminazioni
  1. 3 2
      src/layout/components/AppMain.vue

+ 3 - 2
src/layout/components/AppMain.vue

@@ -1,7 +1,7 @@
 <template>
   <section class="app-main">
     <transition name="fade-transform" mode="out-in">
-      <keep-alive>
+      <keep-alive >
         <router-view />
       </keep-alive>
     </transition>
@@ -13,10 +13,11 @@ 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,'45454');
       return this.$route.path;
     },
   },