AppMain.vue 633 Bytes
<!--
 * @Description: 
 * @Autor: renchao
 * @LastEditTime: 2023-05-08 15:19:43
-->
<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>
  .hasTagsView {
    .app-main {
      height: calc(100% - 50px);
      overflow-x: auto;
      padding: 5px;
      box-sizing: border-box;
      background-color: #edf1f7;
      box-sizing: border-box;
    }
  }
</style>