App.vue 485 B

123456789101112131415161718192021222324252627
  1. <template>
  2. <div>
  3. <keep-alive>
  4. <router-view v-if="$route.meta.keepAlive"></router-view>
  5. </keep-alive>
  6. <router-view v-if="!$route.meta.keepAlive"></router-view>
  7. </div>
  8. </template>
  9. <script>
  10. import { funWxShare } from './utils/wxShareConfig'
  11. export default {
  12. name: 'App',
  13. mounted () {
  14. funWxShare('', '', location.href, '')
  15. }
  16. }
  17. </script>
  18. <style lang="scss">
  19. @import "./assets/styles/reset";
  20. body {
  21. background: #F2F2F2;
  22. }
  23. </style>