From 5a086e68ed63077bbb3af6d2eb179d380d8805cf Mon Sep 17 00:00:00 2001
From: odc.xiaohui <xiaohui@Q1>
Date: 星期五, 01 三月 2024 09:35:51 +0800
Subject: [PATCH] 登录页调整

---
 src/main.ts |   40 +++++++++++++++++++++++-----------------
 1 files changed, 23 insertions(+), 17 deletions(-)

diff --git a/src/main.ts b/src/main.ts
index 50d3330..ffc8509 100644
--- a/src/main.ts
+++ b/src/main.ts
@@ -1,19 +1,25 @@
-import { createApp } from "vue";
-// Vue Router
-import { createPinia } from "pinia";
-import index from "./router";
+import { createApp } from 'vue'
+import { createPinia } from 'pinia'
+import DataVVue3 from '@kjgl77/datav-vue3'
+import App from './App.vue'
+import router from './router'
+import * as ElementPlusIconsVue from '@element-plus/icons-vue'
+import '@/assets/css/main.scss'
+import '@/assets/css/tailwind.css'
+import 'swiper/swiper-bundle.css';
 
-import { registerStore } from "./store";
-import App from "~/App.vue";
+import {registerEcharts} from "@/plugins/echarts"
+//涓嶄娇鐢╩ock 璇锋敞閲婃帀
+// import { mockXHR } from "@/mock/index";
+//
+// mockXHR()
 
-import "~/styles/tailwind.css";
-import "~/styles/main.scss";
-
-const app = createApp(App);
-
-app.use(createPinia());
-registerStore();
-
-app.use(index);
-
-app.mount("#app");
+const app = createApp(App)
+registerEcharts(app)
+app.use(createPinia())
+app.use(router)
+app.use(DataVVue3)
+for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
+    app.component(key, component)
+}
+app.mount('#app')

--
Gitblit v1.8.0