App.vue 840 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <template>
  2. <div id="app">
  3. <transition name="fade">
  4. <keep-alive>
  5. <router-view v-if="$route.meta.keepAlive" />
  6. </keep-alive>
  7. </transition>
  8. <transition name="fade">
  9. <router-view v-if="!$route.meta.keepAlive"/>
  10. </transition>
  11. </div>
  12. </template>
  13. <style lang="less">
  14. @import url('./assets/commonLess/common');
  15. #app {
  16. font-family: 'Avenir', Helvetica, Arial, sans-serif;
  17. -webkit-font-smoothing: antialiased;
  18. -moz-osx-font-smoothing: grayscale;
  19. background: #F3F4F8;
  20. // overflow-x: hidden;
  21. // overflow-y: auto;
  22. user-select: none;
  23. -webkit-text-size-adjust: none !important;
  24. }
  25. .fade-enter-active, .fade-leave-active {
  26. transition: opacity .5s
  27. }
  28. .fade-enter, .fade-leave-active {
  29. opacity: 0
  30. }
  31. body {
  32. -webkit-text-size-adjust: none !important;
  33. }
  34. </style>