AppMain.vue 584 Bytes
Newer Older
Pan's avatar
Pan committed
1
<template>
Pan's avatar
Pan committed
2
  <section class="app-main">
Pan's avatar
Pan committed
3 4
    <transition name="fade-transform" mode="out-in">
      <!-- or name="fade" -->
Pan's avatar
Pan committed
5
      <!-- <router-view :key="key"></router-view> -->
6
      <router-view/>
Pan's avatar
Pan committed
7 8
    </transition>
  </section>
Pan's avatar
Pan committed
9 10 11
</template>

<script>
Pan's avatar
Pan committed
12 13 14
export default {
  name: 'AppMain',
  computed: {
Pan's avatar
Pan committed
15 16 17
    // key() {
    //   return this.$route.name !== undefined ? this.$route.name + +new Date() : this.$route + +new Date()
    // }
Pan's avatar
Pan committed
18 19
  }
}
Pan's avatar
Pan committed
20
</script>
21 22 23 24 25 26 27 28 29

<style scoped>
.app-main {
  /*50 = navbar  */
  min-height: calc(100vh - 50px);
  position: relative;
  overflow: hidden;
}
</style>