App.vue 694 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <template>
  2. <a-config-provider :locale="locale">
  3. <div class="app">
  4. <router-view />
  5. </div>
  6. </a-config-provider>
  7. </template>
  8. <script lang="ts">
  9. import { defineComponent } from 'vue'
  10. import { useMyStore } from './store'
  11. import zhCN from 'ant-design-vue/es/locale/zh_CN';
  12. import 'moment/dist/locale/zh-cn';
  13. export default defineComponent({
  14. name: 'App',
  15. setup() {
  16. const store = useMyStore();
  17. return {
  18. locale: zhCN,
  19. }
  20. }
  21. })
  22. </script>
  23. <style lang="scss" scoped>
  24. .app {
  25. width: 100%;
  26. height: 100%;
  27. overflow: hidden;
  28. .map-wrapper {
  29. height: 100%;
  30. width: 100%;
  31. }
  32. }
  33. </style>
  34. <style lang="scss">
  35. #root {
  36. width: 100%;
  37. height: 100%
  38. }
  39. </style>