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

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

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