<!-- 公共页面入口文件 -->
<script setup lang="ts">
import {userStore} from "@/stores/user.ts";

const $user = userStore();

</script>

<template>
  <div class="common-layout">
    <el-container style="height:100vh">
      <el-header>
        <keep-alive>
          <router-view name="tabBar"></router-view>
        </keep-alive>
      </el-header>
      <el-container style="height:calc(100vh - 66px)">
        <el-aside width="253px" style="margin-top: 10px;border-radius: 15px;">
          <keep-alive>
            <router-view name="leftAsideBar"></router-view>
          </keep-alive>
        </el-aside>
        <el-main >
          <keep-alive>
            <router-view></router-view>
          </keep-alive>
        </el-main>
        <el-aside width="253px" style="margin-top: 10px;border-radius: 15px;">
          <keep-alive>
            <router-view name="rightAsideBar"></router-view>
          </keep-alive>
        </el-aside>
      </el-container>
    </el-container>
  </div>
</template>

<style scoped>
.common-layout {
 background: rgb(249, 250, 251); 
}
</style>
