diff --git a/src/main.ts b/src/main.ts index efd2c0f..5539253 100644 --- a/src/main.ts +++ b/src/main.ts @@ -3,6 +3,7 @@ import { createPinia } from 'pinia' import App from './App.vue' import router from './router' import ElementPlus from 'element-plus' +import zhCn from 'element-plus/dist/locale/zh-cn.mjs' import 'element-plus/dist/index.css' // 主题系统(必须在 App 之前 import) @@ -16,5 +17,5 @@ document.body.setAttribute('data-theme', loadTheme()) const app = createApp(App) app.use(createPinia()) app.use(router) -app.use(ElementPlus) +app.use(ElementPlus, { locale: zhCn }) app.mount('#app')