智慧园区前端大屏
shuishen
2024-12-18 9a37c5e1b2190c3f6ec71483923922189091dd52
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/*
 * @Author: shuishen 1109946754@qq.com
 * @Date: 2024-10-25 10:56:27
 * @LastEditors: shuishen 1109946754@qq.com
 * @LastEditTime: 2024-12-03 00:20:21
 * @FilePath: \bigScreen\src\main.js
 * @Description: 
 * 
 * Copyright (c) 2024 by shuishen, All Rights Reserved. 
 */
import { createApp, h } from 'vue'
import { createPinia } from 'pinia'
import router from '@/router/index'
 
import '@fortawesome/fontawesome-free/css/all.min.css'
 
import piniaPersistPlugin from 'pinia-plugin-persist'
import '@/styles/index.scss'
import App from './App.vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import './permission'
 
// 全局组件自动注册
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'
window.DC = Object.create(DC)  //Since the imported DC is read-only, it needs to be re-expanded
const app = createApp(App)
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.mount('#app')