| | |
| | | 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.Vue = Vue |
| | | window.$layer = layer(Vue) |
| | | // 注册指令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, |