派生自 wuyushui/SewerAndRainNetwork

徐旺旺
2021-05-30 a312e0dd96d8f7e96fb3341f1a55561b12394405
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
// import 'babel-polyfill'
import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
// import registerDirectives from './directive'
import echarts from 'echarts'
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/iconfont/iconfont.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 '@/utils/dialogDrag.js'
import '@components/plugin/leaflet-measure-path/leaflet-measure-path.css'
import '@components/plugin/leaflet-measure-path/leaflet-measure-path'
import '@components/plugin/PathDrag'
// import '@components/plugin/flowline'
 
import layer from './components/layer'
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
window.echarts = echarts
window.Vue = Vue
window.$layer = layer(Vue)
// 注册指令7
// registerDirectives(Vue)
 
// 注册echarts皮肤
echarts.registerTheme('dark', echartsDarkTheme)
 
// 开发环境下加载假数据
if (process.env.VUE_APP_MOCK && process.env.NODE_ENV === 'development') {
  console.warn('当前处于mock数据请求!')
  // require('./mock')
}
window.vm = new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')