<script setup lang="ts">
import { useTagsViewStore } from "@/store/modules/tagsView";

const tagsViewStore = useTagsViewStore();
</script>

<template>
  <section class="app-main">
    <router-view v-slot="{ Component, route }">
      <keep-alive :include="tagsViewStore.cachedViews">
        <component :is="Component" :key="route.fullPath" />
      </keep-alive>
    </router-view>
  </section>
</template>
<style lang="scss">
.app-main {
  .app-container {
    .el-card {
      border: none !important;
    }
  }
}
</style>
<style lang="scss" scoped>
.app-main {
  position: relative;
  width: 100%;
  /* 50= navbar  50  */
  height: calc(100vh - 170px);
  overflow: auto;
  // background-color: var(--el-bg-color-page);
}

.fixed-header + .app-main {
  //   padding-top: 70px;
}
</style>
