From b01723592cc0e6a9702dea57fb176a465c5ee45c Mon Sep 17 00:00:00 2001
From: huang <1532065656@qq.com>
Date: 星期四, 23 十月 2025 13:18:34 +0800
Subject: [PATCH] 仓储设备图色块修改,element组件国际化语言添加
---
UI-Project/src/main.js | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/UI-Project/src/main.js b/UI-Project/src/main.js
index ddca56a..8cc37d3 100644
--- a/UI-Project/src/main.js
+++ b/UI-Project/src/main.js
@@ -9,7 +9,7 @@
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import VXETable from 'vxe-table'
import 'vxe-table/lib/style.css'
-import i18n from '@/lang'
+import i18n, { syncElementLocale } from '@/lang';
// import Echarts from "vue-echarts"
// echarts.registerMap('china', china)
// Vue.prototype.$echarts = echarts
@@ -26,9 +26,10 @@
app.use(VXETable)
app.use(pinia)
app.use(router)
-// app.use(ElementPlus)
-app.use(ElementPlus,{
- locale: zhCn,
-})
+app.use(ElementPlus)
+// app.use(ElementPlus,{
+// locale: zhCn,
+// })
app.use(i18n)
+syncElementLocale();
app.mount('#app')
\ No newline at end of file
--
Gitblit v1.8.0