We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9237de9 commit 759beafCopy full SHA for 759beaf
src/main.ts
@@ -2,6 +2,7 @@ import {createApp} from 'vue'
2
import { createPinia } from 'pinia'
3
import ElementPlus from 'element-plus'
4
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
5
+import zhCn from 'element-plus/es/locale/lang/zh-cn'
6
import App from './App.vue'
7
import router from './router'
8
import { usePermissStore } from './store/permiss'
@@ -13,7 +14,9 @@ const app = createApp(App)
13
14
15
app.use(createPinia())
16
app.use(router)
-app.use(ElementPlus)
17
+app.use(ElementPlus, {
18
+ locale: zhCn,
19
+})
20
// 注册elementplus图标
21
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
22
app.component(key, component)
0 commit comments