ZhangXianQiang
2024-06-04 c2cdcda6ae1d9610f42c09525860d159e40afe6f
src/layout/index.vue
@@ -5,15 +5,22 @@
<template>
  <div class="page-container w-screen h-screen flex flex-col">
    <Header></Header>
    <div class="page-content w-screen grow relative">
      <div class="page-wrapper bg-slate-50 absolute top-0 left-0 right-0 bottom-0 overflow-y-auto">
        <el-scrollbar>
          <RouterView />
          <router-view v-slot="{ Component }">
            <transition appear name="fade-transform" mode="out-in">
              <keep-alive>
                <component :is="Component" />
              </keep-alive>
            </transition>
          </router-view>
        </el-scrollbar>
      </div>
    </div>
  </div>
</template>
<style scoped></style>