App.vue 584 B

123456789101112131415161718192021222324252627282930313233
  1. <template>
  2. <div id="app">
  3. <loading v-if="loading" />
  4. <router-view />
  5. </div>
  6. </template>
  7. <script>
  8. import loading from '@/components/loading.vue'
  9. import { mapState } from 'pinia'
  10. import useStore from './store/index'
  11. export default {
  12. components: {
  13. loading
  14. },
  15. computed: {
  16. ...mapState(useStore, [ 'loading' ])
  17. }
  18. }
  19. </script>
  20. <style>
  21. html,body{
  22. margin: 0;
  23. padding: 0;
  24. }
  25. #app {
  26. font-family: Avenir, Helvetica, Arial, sans-serif;
  27. -webkit-font-smoothing: antialiased;
  28. -moz-osx-font-smoothing: grayscale;
  29. text-align: center;
  30. color: #2c3e50;
  31. }
  32. </style>