From 67cbfd8f7c2ed9598eef92470313f3cf31028ea1 Mon Sep 17 00:00:00 2001 From: 严智鑫 <test> Date: 星期二, 11 三月 2025 08:39:33 +0800 Subject: [PATCH] 2.13-3-7号 现场标注线调试更改 --- UI-Project/src/main.js | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git a/UI-Project/src/main.js b/UI-Project/src/main.js index bec7957..cb42b7c 100644 --- a/UI-Project/src/main.js +++ b/UI-Project/src/main.js @@ -10,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) -- Gitblit v1.8.0