<template>
  <section class="app-main">
    <transition name="fade" mode="out-in">
      <!-- <router-view :key="key"></router-view> -->
      <keep-alive :include="cacheRouters">
        <router-view />
      </keep-alive>
    </transition>
  </section>
</template>

<script>
export default {
  name: "AppMain",
  data() {
    return {
      cacheRouters: [
        "ExamManagement",
        "InvigilationDetail",
        "WarningManage",
        "OnlinePatrol",
      ],
    };
  },
};
</script>

<style scoped>
.app-main {
  padding: 30px;
}
</style>
