AppMain.vue 560 Bytes
<!--
 * @Description: 
 * @Autor: renchao
 * @LastEditTime: 2023-03-20 16:35:09
-->
<template>
  <section class="app-main">
    <transition name="fade-transform" mode="out-in">
      <router-view />
    </transition>
  </section>
</template>
<script>
export default {
  name: 'AppMain',
  computed: {
    key () {
      return this.$route.path
    }
  }
}
</script>
<style lang="scss" scoped>
.app-main {
  height: calc(100vh - 74px);
  overflow-x: hidden;
  box-sizing: border-box;
  flex: 1;
  width: 100%;
  background: #EFF0F4;
  padding: 15px;
}
</style>