<!--
 * @Author: error: error: git config user.name & please set dead value or install git && error: git config user.email & please set dead value or install git & please set dead value or install git
 * @Date: 2022-07-01 17:39:58
 * @LastEditors: wen 1454560336@qq.com
 * @LastEditTime: 2024-01-18 16:33:07
 * @FilePath: \admin-manage\src\layout\components\AppMain.vue
 * @Description: 
 * 
 * Copyright (c) 2023 by ${git_name_email}, All Rights Reserved. 
-->
<template>
  <section class="app-main">
    <TopBar></TopBar>
    <transition name="fade-transform" mode="out-in">
      <!-- <keep-alive> -->
        <router-view  />
      <!-- </keep-alive> -->
    </transition>
  </section>
</template>

<script>
export default {
  name: 'AppMain',
  computed: {
    key() {
      return this.$route.path!==undefined?this.$route.path + new Date ():this.$route+new Date()
    }
  }
}
</script>

<style scoped>
.app-main {
  /*50 = navbar  */
  width: 100%;
  position: relative;
  top: 50px;
  overflow: auto;
}
.fixed-header+.app-main {
  padding-top: 50px;
}
</style>

<style lang="scss">
// fix css style bug in open el-dialog
.el-popup-parent--hidden {
  .fixed-header {
    padding-right: 15px;
  }
}
</style>
