Sfoglia il codice sorgente

[fixed] page animation

x 5 anni fa
parent
commit
3c5204e519
1 ha cambiato i file con 5 aggiunte e 5 eliminazioni
  1. 5 5
      src/App.vue

+ 5 - 5
src/App.vue

@@ -1,11 +1,11 @@
 <template>
   <div>
     <div class="app" v-cloak>
-      <!--      <transition :name="transitionName">-->
-      <keep-alive :include="include" :max="10">
-        <router-view class="router" ref="router"></router-view>
-      </keep-alive>
-      <!--      </transition>-->
+      <transition :name="transitionName">
+        <keep-alive :include="include" :max="10">
+          <router-view class="router" ref="router"></router-view>
+        </keep-alive>
+      </transition>
     </div>
     <Footer v-if="footer === true"></Footer>
     <Home v-if="home === true"></Home>