|
|
@@ -2,6 +2,7 @@ import {createApp} from 'vue'
|
|
|
import { createPinia } from 'pinia'
|
|
|
import ElementPlus from 'element-plus'
|
|
|
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
|
|
|
+import zhCn from 'element-plus/es/locale/lang/zh-cn'
|
|
|
import App from './App.vue'
|
|
|
import router from './router'
|
|
|
import { usePermissStore } from './store/permiss'
|
|
|
@@ -13,7 +14,9 @@ const app = createApp(App)
|
|
|
|
|
|
app.use(createPinia())
|
|
|
app.use(router)
|
|
|
-app.use(ElementPlus)
|
|
|
+app.use(ElementPlus, {
|
|
|
+ locale: zhCn,
|
|
|
+})
|
|
|
// 注册elementplus图标
|
|
|
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
|
|
|
app.component(key, component)
|