chenjun 2 years ago
parent
commit
a37b29a147
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/layout/components/AppMain.vue

+ 1 - 1
src/layout/components/AppMain.vue

@@ -10,7 +10,7 @@
   <section class="app-main">
     <div class="app-main-content">
       <transition name="fade-transform" mode="out-in">
-        <keep-alive v-if="$route.meta && $route.meta.keepAlive">
+        <keep-alive v-if="$route.meta && $route.meta.keepAlive" :max="6">
           <router-view  :key="key"  class="router-view">
           </router-view>
         </keep-alive>