Files
my-bigScreen/screen-vue/src/main.js
2026-03-04 10:55:53 +08:00

28 lines
697 B
JavaScript

import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import VScaleScreen from 'v-scale-screen'
import * as echarts from 'echarts'
import "@/assets/font/pangshizidao.ttf";
const app = createApp(App)
// 注册路由
app.use(router)
app.use(ElementPlus, {
locale: zhCn,
})
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
app.component(key, component)
}
app.use(VScaleScreen)
app.config.globalProperties.$echarts = echarts
app.mount('#app')