App.vue 552 B

12345678910111213141516171819202122232425
  1. <template>
  2. <el-config-provider :locale="currentLocale">
  3. <router-view />
  4. <ReDialog />
  5. </el-config-provider>
  6. </template>
  7. <script lang="ts">
  8. import { defineComponent } from "vue";
  9. import { ElConfigProvider } from "element-plus";
  10. import zhCn from "element-plus/dist/locale/zh-cn.mjs";
  11. import { ReDialog } from "@/components/ReDialog";
  12. export default defineComponent({
  13. name: "app",
  14. components: {
  15. [ElConfigProvider.name]: ElConfigProvider,
  16. ReDialog
  17. },
  18. computed: {
  19. currentLocale() {
  20. return zhCn;
  21. }
  22. }
  23. });
  24. </script>