From ce6d4baacf1b8bc9946216f33cbe723a3a686f05 Mon Sep 17 00:00:00 2001
From: ZhangXianQiang <1135831638@qq.com>
Date: 星期四, 29 二月 2024 15:46:18 +0800
Subject: [PATCH] feat:点击播放视频

---
 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