task-271(验收反馈): Element Plus 全局接入 zh-cn 语言包(日期控件/分页组件中文)

This commit is contained in:
2026-09-06 01:44:06 +08:00
parent c381527528
commit 9ac4eda054
3 changed files with 53 additions and 24 deletions
+11
View File
@@ -0,0 +1,11 @@
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 '@/styles/main.css'
import App from './App.vue'
import router from './router'
// 全局中文语言包:日期控件(周/月/年份)、分页组件(上一页/下一页)等均显示中文。
createApp(App).use(createPinia()).use(router).use(ElementPlus, { locale: zhCn }).mount('#app')