AppMain.vue 584 B

1234567891011121314151617181920212223242526272829
  1. <template>
  2. <section class="app-main">
  3. <transition name="fade-transform" mode="out-in">
  4. <!-- or name="fade" -->
  5. <!-- <router-view :key="key"></router-view> -->
  6. <router-view/>
  7. </transition>
  8. </section>
  9. </template>
  10. <script>
  11. export default {
  12. name: 'AppMain',
  13. computed: {
  14. // key() {
  15. // return this.$route.name !== undefined ? this.$route.name + +new Date() : this.$route + +new Date()
  16. // }
  17. }
  18. }
  19. </script>
  20. <style scoped>
  21. .app-main {
  22. /*50 = navbar */
  23. min-height: calc(100vh - 90px);
  24. position: relative;
  25. overflow: hidden;
  26. }
  27. </style>