From 9a37c5e1b2190c3f6ec71483923922189091dd52 Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Wed, 18 Dec 2024 09:42:01 +0800
Subject: [PATCH] 事件模拟更新

---
 src/main.js |   30 +++++++++++++++++++++++++-----
 1 files changed, 25 insertions(+), 5 deletions(-)

diff --git a/src/main.js b/src/main.js
index 625b57d..15c9d32 100644
--- a/src/main.js
+++ b/src/main.js
@@ -2,13 +2,13 @@
  * @Author: shuishen 1109946754@qq.com
  * @Date: 2024-10-25 10:56:27
  * @LastEditors: shuishen 1109946754@qq.com
- * @LastEditTime: 2024-10-28 10:53:47
+ * @LastEditTime: 2024-12-03 00:20:21
  * @FilePath: \bigScreen\src\main.js
  * @Description: 
  * 
  * Copyright (c) 2024 by shuishen, All Rights Reserved. 
  */
-import { createApp } from 'vue'
+import { createApp, h } from 'vue'
 import { createPinia } from 'pinia'
 import router from '@/router/index'
 
@@ -19,9 +19,19 @@
 import App from './App.vue'
 import ElementPlus from 'element-plus'
 import 'element-plus/dist/index.css'
+import './permission'
 
 // 全局组件自动注册
-import components from '@/components/index'
+import GlobalSearch from 'components/global/GlobalSearch.vue'
+// import GlobalTable from 'components/global/GlobalTable.vue'
+import MapContainer from 'components/global/MapContainer.vue'
+import publicBox from 'components/global/publicBox.vue'
+import TitleBox from 'components/global/TitleBox.vue'
+import publicContent from 'components/global/publicContent.vue'
+import panorama from 'components/global/panorama.vue'
+
+import { getElementLabelLine } from 'element-tree-line'
+import 'element-tree-line/dist/style.css'
 
 import * as DC from '@dvgis/dc-sdk'
 import '@dvgis/dc-sdk/dist/dc.min.css'
@@ -30,8 +40,18 @@
 const pinia = createPinia()
 
 pinia.use(piniaPersistPlugin)
+const ElementLabelLine = getElementLabelLine(h)
+app.component(ElementLabelLine.name, ElementLabelLine)
+
+app.component('GlobalSearch', GlobalSearch)
+// app.component('GlobalTable', GlobalTable)
+app.component('MapContainer', MapContainer)
+app.component('publicBox', publicBox)
+app.component('TitleBox', TitleBox)
+app.component('publicContent', publicContent)
+app.component('panorama', panorama)
+
 app.use(router)
 app.use(ElementPlus)
 app.use(pinia)
-app.use(components)
-app.mount('#app')
+app.mount('#app')
\ No newline at end of file

--
Gitblit v1.9.3