From dc96a39a9b76f1ab95465df01553fc88c0e07ef8 Mon Sep 17 00:00:00 2001 From: gyq <875626088@qq.com> Date: Wed, 10 Jan 2024 15:17:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E8=AF=AD=E8=A8=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.js b/src/main.js index cc9d2bb..ec7e9f1 100644 --- a/src/main.js +++ b/src/main.js @@ -13,7 +13,7 @@ import pinia from "./store/store"; import ElementPlus from "element-plus"; import "element-plus/dist/index.css"; -import locale from 'element-plus/lib/locale/lang/zh-cn' +import zhCn from 'element-plus/dist/locale/zh-cn.mjs' import * as ElementPlusIconsVue from "@element-plus/icons-vue"; @@ -24,7 +24,7 @@ import App from "./App.vue"; const app = createApp(App); app.use(pinia); app.use(router); -app.use(ElementPlus, { locale }); +app.use(ElementPlus, { locale: zhCn }); app.use(initComponents); app.use(initDirective); app.use(countTo);