浏览代码

[fixed] page animation

x 5 年之前
父节点
当前提交
3c5204e519
共有 1 个文件被更改,包括 5 次插入5 次删除
  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>