Explorar o código

菜单路由记录,优化keep-alive缓存

ZaiZai %!s(int64=2) %!d(string=hai) anos
pai
achega
0242b47871
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      src/layout/index.vue

+ 2 - 2
src/layout/index.vue

@@ -43,8 +43,8 @@
             <el-main class="hc-main-box" id="hc-main-box">
                 <router-view v-slot="{ Component }" v-if="reloadRouter">
                     <transition name="fade-transform">
-                        <keep-alive include="ProductList">
-                            <component :is="Component"  :msgCount="msgCount"/>
+                        <keep-alive :max="10" exclude="home,home-index,home-config">
+                            <component :is="Component" :msgCount="msgCount"/>
                         </keep-alive>
                     </transition>
                 </router-view>