Template
1
0
mirror of https://github.com/un-pany/v3-admin-vite.git synced 2025-04-22 03:49:19 +08:00
v3-admin-vite/src/App.vue

18 lines
376 B
Vue
Raw Normal View History

<script lang="ts" setup>
import { useTheme } from "@/hooks/useTheme"
import zhCn from "element-plus/lib/locale/lang/zh-cn"
const { initTheme } = useTheme()
2022-08-24 16:52:01 +08:00
2022-08-19 17:03:38 +08:00
/** 初始化主题 */
initTheme()
/** 将 Element Plus 的语言设置为中文 */
2022-08-19 17:03:38 +08:00
const locale = zhCn
</script>
<template>
<ElConfigProvider :locale="locale">
<router-view />
</ElConfigProvider>
</template>