Explorar o código

Merge branch 'master' of http://120.26.64.82:3000/BFFE/CABaggageData2.0

chenrui  %!s(int64=2) %!d(string=hai) anos
pai
achega
f956df9770
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  1. 5 1
      src/layout/components/AppMain.vue

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

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