/*
|
* @Author: shuishen 1109946754@qq.com
|
* @Date: 2024-10-25 10:56:27
|
* @LastEditors: shuishen 1109946754@qq.com
|
* @LastEditTime: 2024-10-31 11:01:20
|
* @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 components from '@/components/index'
|
|
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.use(router)
|
app.use(ElementPlus)
|
app.use(pinia)
|
app.use(components)
|
app.mount('#app')
|