From 38bcd6306f20787e394347a34e50fcf80b265fc6 Mon Sep 17 00:00:00 2001
From: 陈泽平 <chenzeping>
Date: 星期一, 31 五月 2021 14:53:35 +0800
Subject: [PATCH] 企业应急-事件上报-事发位置问题修改

---
 src/main.js |   33 +++++++++++++++++++++++++++------
 1 files changed, 27 insertions(+), 6 deletions(-)

diff --git a/src/main.js b/src/main.js
index 96479c7..621ab68 100644
--- a/src/main.js
+++ b/src/main.js
@@ -1,3 +1,4 @@
+// import 'babel-polyfill'
 import Vue from 'vue'
 import App from './App.vue'
 import router from './router'
@@ -7,23 +8,43 @@
 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, { size: 'small' })
-// 娉ㄥ唽鎸囦护
+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.NODE_ENV === 'development') {
-  console.log('褰撳墠澶勪簬寮�鍙戞ā寮忥紒')
+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),
+  render: h => h(App)
 }).$mount('#app')

--
Gitblit v1.8.0