Files
my-bigScreen/screen-vue/src/main.js
2026-03-05 22:32:39 +08:00

30 lines
741 B
JavaScript

import { createApp } from 'vue'
import { createPinia } from 'pinia'
import App from './App.vue'
import router from './router'
import ElementPlus from 'element-plus'
import VScaleScreen from 'v-scale-screen'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import 'element-plus/dist/index.css'
import * as echarts from 'echarts'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import "@/assets/font/pangshizidao.ttf";
const app = createApp(App)
app.use(createPinia())
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')