Commit 45ea60ee authored by 李文光's avatar 李文光

fix(ui): Element Plus 启用中文语言包(zh-cn)

引入 element-plus/es/locale/lang/zh-cn,使组件(日期/分页/弹窗等)显示中文。
parent feba71f1
import { createApp } from 'vue'
import { createPinia } from 'pinia'
import ElementPlus from 'element-plus'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import 'element-plus/dist/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
......@@ -16,6 +17,6 @@ for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
app.use(createPinia())
app.use(router)
app.use(ElementPlus)
app.use(ElementPlus, { locale: zhCn })
app.mount('#app')
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment