main.js 585 B

1234567891011121314151617
  1. import {app} from "./init";
  2. import ElementPlus from 'element-plus'
  3. import 'element-plus/dist/index.css'
  4. import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
  5. import '@arcgis/core/assets/esri/themes/dark/main.css'
  6. import router from "./router/index.js";
  7. import './assets/global.scss'
  8. import esriConfig from '@arcgis/core/config.js'
  9. //esriConfig.assetsPath = '/public/assets';
  10. esriConfig.assetsPath = '/map-tool-widget/assets';
  11. import mitt from 'mitt'
  12. app.use(ElementPlus, {
  13. locale: zhCn,
  14. })
  15. app.use(router).mount('#app')
  16. const bus = mitt();
  17. app.config.globalProperties.$bus = bus;