vue 中 vue-router、transition、keep-alive 怎么结合使用?

<transition :name="name" mode="out-in" name="fade">
      <keep-alive>
        <router-view v-if="this.$route.meta.keepAlive"></router-view>
      </keep-alive>
    </transition>
    <transition :name="name" mode="out-in" name="fade">
      <router-view v-if="!this.$route.meta.keepAlive"></router-view>
    </transition>
posted @ 2019-04-15 17:56  front-gl  阅读(1754)  评论(0编辑  收藏  举报