main.js 686 B

1234567891011121314151617181920212223242526272829
  1. import './assets/main.less'
  2. import { createApp } from 'vue'
  3. import App from './App.vue'
  4. import router from './router'
  5. import store from "./store/index";
  6. import * as echarts from "echarts";
  7. import * as turf from '@turf/turf'
  8. // import "echarts-gl";
  9. import ElementPlus from 'element-plus'
  10. import 'element-plus/dist/index.css'
  11. import * as ElementPlusIconsVue from '@element-plus/icons-vue'
  12. const app = createApp(App)
  13. app.use(ElementPlus)
  14. app.use(router)
  15. app.use(store)
  16. for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  17. app.component(key, component)
  18. }
  19. app.config.globalProperties.$echarts = echarts;
  20. app.config.globalProperties.$turf = turf;
  21. app.mount('#app')