AppMain.vue 435 Bytes
<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 - 84px);
  overflow-x: hidden;
  box-sizing: border-box;
  flex: 1;
  width: 100%;
}
</style>