Browse Source

页面刷新

zxr 3 years ago
parent
commit
7418ceeb3b
1 changed files with 4 additions and 2 deletions
  1. 4 2
      src/layout/components/AppMain.vue

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

@@ -2,7 +2,7 @@
   <section class="app-main">
     <transition name="fade-transform" mode="out-in">
       <keep-alive :include="cachedViews">
-        <router-view :key="key" />
+        <router-view :key="new Date().getTime()" />
       </keep-alive>
     </transition>
     <div class="tkbox" v-if="open">
@@ -108,7 +108,8 @@ export default {
       open3: false,
       open4: false,
       title3: "",
-      title4: ""
+      title4: "",
+      n:0
     };
   },
   created() {
@@ -120,6 +121,7 @@ export default {
       return this.$store.state.tagsView.cachedViews;
     },
     key() {
+     
       return this.$route.path;
     }
   },