App.vue 841 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <template>
  2. <el-config-provider :locale="locale">
  3. <router-view />
  4. </el-config-provider>
  5. </template>
  6. <script lang="ts">
  7. export default defineComponent({
  8. name: 'App',
  9. })
  10. </script>
  11. <script lang="ts" setup>
  12. import { defineComponent, ref } from 'vue'
  13. import zhCn from 'element-plus/es/locale/lang/zh-cn'
  14. import { ElConfigProvider } from 'element-plus'
  15. const locale = ref(zhCn)
  16. </script>
  17. <style lang="scss">
  18. @use '@/assets/css/tailwind.scss';
  19. body {
  20. position: relative;
  21. margin: 0;
  22. padding: 0;
  23. font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB',
  24. 'Microsoft YaHei', '\5fae\8f6f\96c5\9ed1', Arial, sans-serif;
  25. }
  26. #app {
  27. background-color: rgb(233, 230, 231);
  28. height: 100%;
  29. width: 100%;
  30. position: relative;
  31. div {
  32. box-sizing: border-box;
  33. }
  34. }
  35. </style>
  36. <style lang="scss" scoped></style>