liweilong
2020-12-09 efd7c8fea38ab641db8581fb8c9d910640cfc8fb
src/layout/components/AppMain.vue
@@ -1,7 +1,12 @@
<template>
  <section class="app-main">
    <transition name="fade-transform" mode="out-in">
      <router-view :key="key" />
      <div>
        <keep-alive>
          <router-view v-if="$route.meta.keepAlive" :key="key" />
        </keep-alive>
        <router-view v-if="!$route.meta.keepAlive" :key="key" />
      </div>
    </transition>
  </section>
</template>