From d2adbd69bf063be99890ae2f828e41bd67efc96c Mon Sep 17 00:00:00 2001
From: QYF-GitLab1 <1940665526@qq.com>
Date: 星期日, 24 八月 2025 11:29:42 +0800
Subject: [PATCH] Merge branch 'master' of http://182.92.203.7:2001/r/xiehe_website

---
 src/main.js |   35 +++++++++++++++++++++++++++++++++++
 1 files changed, 35 insertions(+), 0 deletions(-)

diff --git a/src/main.js b/src/main.js
new file mode 100644
index 0000000..9afd31e
--- /dev/null
+++ b/src/main.js
@@ -0,0 +1,35 @@
+import './assets/main.css'
+
+import { createApp } from 'vue'
+import { createPinia } from 'pinia'
+
+import App from './App.vue'
+// 瀹屾暣寮曞叆 Element Plus
+import ElementPlus from 'element-plus'
+import 'element-plus/dist/index.css'
+import * as ElementPlusIconsVue from '@element-plus/icons-vue'
+import router from './router'
+import MG from '@/assets/js/middleGround/WebMiddleGroundApi.js'
+import toolClass from '@/assets/js/toolClass.js'
+import config from '@/assets/js/config.js'
+// import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
+import locale from 'element-plus/es/locale/lang/zh-cn'
+
+const app = createApp(App)
+
+app.provide('config', config)
+app.provide('MG', MG)
+app.provide('toolClass', toolClass)
+
+// 娉ㄥ唽鎵�鏈夊浘鏍�
+for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
+  app.component(key, component)
+}
+app.use(ElementPlus)
+app.use(createPinia())
+app.use(router)
+// app.use(ElementPlus, {
+//   locale: zhCn,
+// })
+app.use(ElementPlus, { locale })
+app.mount('#app')

--
Gitblit v1.9.1