AppMain.vue 422 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> -->
Pan's avatar
Pan committed
5
      <router-view></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>