App.vue 359 B

12345678910111213141516
  1. <script setup lang="ts">
  2. import zhCn from 'element-plus/lib/locale/lang/zh-cn'
  3. import { useThemeStore } from '@/stores/theme'
  4. const locale = zhCn
  5. const themeStore = useThemeStore()
  6. themeStore.initTheme()
  7. </script>
  8. <template>
  9. <el-config-provider :locale="locale">
  10. <router-view></router-view>
  11. </el-config-provider>
  12. </template>
  13. <style scoped></style>