You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
535 B

5 years ago
5 years ago
  1. <template>
  2. <section class="app-main" style="min-height: 100%">
  3. <transition name="fade" mode="out-in">
  4. <keep-alive :include="cachedViews">
  5. <router-view></router-view>
  6. </keep-alive>
  7. </transition>
  8. </section>
  9. </template>
  10. <script>
  11. export default {
  12. name: 'AppMain',
  13. computed: {
  14. cachedViews() {
  15. return this.$store.state.tagsView.cachedViews
  16. }
  17. // key() {
  18. // return this.$route.name !== undefined ? this.$route.name + +new Date() : this.$route + +new Date()
  19. // }
  20. }
  21. }
  22. </script>