zhongxiaoyu 2 years ago
parent
commit
415d46b92f
2 changed files with 2 additions and 2 deletions
  1. 1 1
      src/layout/components/AppMain.vue
  2. 1 1
      src/router/routes/routes-file-five.js

+ 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>

+ 1 - 1
src/router/routes/routes-file-five.js

@@ -125,7 +125,7 @@ const arrivalRoutes = {
 const transferRoutes = {
   path: '/transfer',
   component: Layout,
-  meta: { roles: ['is_showTransit'] },
+  meta: { roles: ['is_showTransit'],keepAlive: true },
   children: [
     {
       path: '/transfer',