From 1460aa1d5f2b5722d43ed31724594c006213bea7 Mon Sep 17 00:00:00 2001
From: huang <1532065656@qq.com>
Date: 星期五, 18 四月 2025 16:40:43 +0800
Subject: [PATCH] 看板2更新
---
UI-Project/src/main.js | 12 ++++++++----
1 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/UI-Project/src/main.js b/UI-Project/src/main.js
index 276e058..cb42b7c 100644
--- a/UI-Project/src/main.js
+++ b/UI-Project/src/main.js
@@ -1,5 +1,4 @@
import './assets/main.css'
-
import { createApp } from 'vue'
import { createPinia } from 'pinia'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
@@ -11,18 +10,23 @@
import VXETable from 'vxe-table'
import 'vxe-table/lib/style.css'
import i18n from '@/lang'
-// import Echarts from "vue-echarts"
-import * as echarts from "echarts"
+import Echarts from "vue-echarts"
+import * as echarts from "echarts";
// echarts.registerMap('china', china)
// Vue.prototype.$echarts = echarts
// app.component("v-chart", Echarts)
// app.config.globalProperties.$echarts = echarts
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
+
const app = createApp(App)
+app.component('v-chart', echarts)
+//app.config.globalProperties.$echarts = echarts
+
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
app.component(key, component)
}
+
const pinia = createPinia()
pinia.use(piniaPluginPersistedstate )
app.use(VXETable)
@@ -33,4 +37,4 @@
locale: zhCn,
})
app.use(i18n)
-app.mount('#app')
+app.mount('#app')
\ No newline at end of file
--
Gitblit v1.8.0