From 96be59a64cc1d8fcaf1034e787717663c68df4a7 Mon Sep 17 00:00:00 2001
From: 杨磊 <505174330@qq.com>
Date: 星期一, 26 五月 2025 10:39:58 +0800
Subject: [PATCH] 2025-5-26提交

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

diff --git a/src/main.js b/src/main.js
index 3e0c163..cc1c9be 100644
--- a/src/main.js
+++ b/src/main.js
@@ -1,21 +1,30 @@
-import { createApp } from 'vue'
-import App from './App.vue'
+import { createApp } from "vue";
+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 './style.css'
-import router from './router'
-import './styles/global.less'
+import ElementPlus from "element-plus";
+import * as ElementPlusIconsVue from "@element-plus/icons-vue";
+import router from "./router";
+import "./styles/global.less";
+import pinia from '@/store/index'
 
-const app = createApp(App)
+import MG from "@/assets/js/middleGround/WebMiddleGroundApi.js"
+import toolClass from '@/assets/js/toolClass.js'
+import config from "@/assets/js/config.js"
+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.component(key, component);
 }
 
 // 浣跨敤 Element Plus
-app.use(ElementPlus)
-app.use(router)
-app.mount('#app')
+app.use(pinia)
+app.use(ElementPlus);
+
+app.use(router);
+app.mount("#app");

--
Gitblit v1.9.1