<template>
  <main class="layout-container wow animate__animated animate__slideInLeft" data-wow-duration=".5s" data-wow-delay=".3s">
    <!--    <router-view/>-->
    <!--    缓存-->
    <router-view v-slot="{ Component, route }">
      <transition name="fade-transform" mode="out-in">
        <keep-alive>
          <component :is="Component" :key="route.path" />
        </keep-alive>
      </transition>
    </router-view>
  </main>
</template>

<script lang="ts" setup>

</script>

<style scoped lang="scss">
.layout-container{
  flex: 1;
}
</style>
