| | |
| | | import 'babel-polyfill' |
| | | // import 'babel-polyfill' |
| | | import Vue from 'vue' |
| | | import App from './App.vue' |
| | | import router from './router' |
| | |
| | | import echartsDarkTheme from '@/styles/theme-dark/echarts/theme.json' |
| | | import ElementUI from 'element-ui' |
| | | import 'element-ui/lib/theme-chalk/index.css' |
| | | import '@assets/css/map/_map-variable.less' |
| | | import '@assets/css/map/map-panel-style.less' |
| | | import 'leaflet/dist/leaflet.css' |
| | | import L from 'leaflet' |
| | | import 'leaflet.markercluster' |
| | | // import 'leaflet-canvas-markers' |
| | | import './components/plugin/Leaflet.GridLayer.FadeOut' |
| | | import './components/plugin/leaflet-canvas-markers' |
| | | import '@/utils/dialogDrag.js' |
| | | import '@components/plugin/leaflet-measure-path/leaflet-measure-path.css' |
| | | import '@components/plugin/leaflet-measure-path/leaflet-measure-path' |
| | | const appConfig = require('@/app.config') |
| | | Vue.config.productionTip = false |
| | | |
| | | Vue.use(ElementUI) |
| | | Vue.prototype.$cancels = [] |
| | | Vue.prototype.L = L |
| | | // 注册指令 |
| | | Vue.prototype.$config = appConfig |
| | | Vue.prototype.$echarts = echarts // 挂载echarts |
| | | // 注册指令7 |
| | | // registerDirectives(Vue) |
| | | |
| | | // 注册echarts皮肤 |
| | |
| | | // 开发环境下加载假数据 |
| | | if (process.env.VUE_APP_MOCK && process.env.NODE_ENV === 'development') { |
| | | console.warn('当前处于mock数据请求!') |
| | | require('./mock') |
| | | // require('./mock') |
| | | } |
| | | window.vm = new Vue({ |
| | | router, |