App.vue 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. <script>
  14. export default {
  15. name: 'app',
  16. mounted() {
  17. if(document.querySelector('#m_loading')) {
  18. document.querySelector('#m_loading').remove()
  19. }
  20. }
  21. }
  22. </script>
  23. <style lang="less">
  24. @import url("./assets/commonLess/common");
  25. #app {
  26. font-family: "Avenir", Helvetica, Arial, sans-serif;
  27. -webkit-font-smoothing: antialiased;
  28. -moz-osx-font-smoothing: grayscale;
  29. background: #f3f4f8;
  30. // overflow-x: hidden;
  31. // overflow-y: auto;
  32. user-select: none;
  33. -webkit-text-size-adjust: none !important;
  34. }
  35. // /deep/.van-icon.van-icon-success{
  36. // }
  37. // .fade-enter-active,
  38. // .fade-leave-active {
  39. // transition: opacity 0.5s;
  40. // }
  41. // .fade-enter,
  42. // .fade-leave-active {
  43. // opacity: 0;
  44. // }
  45. body {
  46. -webkit-text-size-adjust: none !important;
  47. }
  48. </style>