import Vue from 'vue' import App from './App.vue' import ElementUI from 'element-ui' import echarts from 'echarts' // import 'element-ui/lib/theme-chalk/index.css' import '../static/css/index.css' import '../static/css/fonts.css' import Enlocale from '../node_modules/element-ui/lib/locale/lang/en' import Zhlocale from '../node_modules/element-ui/lib/locale/lang/zh-CN' import router from './router/index.js' import 'echarts-gl' import axios from 'axios' import qs from 'qs' import store from './store/index' window.sessionStorage.setItem('webInfo', 'ASOS') Vue.use(ElementUI, { locale: Zhlocale }) Vue.prototype.$axios = axios Vue.prototype.$qs = qs Vue.prototype.$echarts = echarts Vue.config.productionTip = false new Vue({ el: '#app', router, store, components: { App }, template: '' }) // 定义部分全局变量 Vue.config.maps = {}; Vue.config.baseUrl = process.env.NODE_ENV === 'development' ? 'http://124.222.8.13:9801' : `${window.location.protocol}//${window.location.hostname}:${window.location.port}` Vue.config.wwwrootBaseUrl = "_content/IDSSE.OceanExplorer.Shared"; Vue.config.sprites = ["go.png", "ship.png", "ship1.png", "ship2.png", "ship3.png", "fdz.png", "shys.png", "auv.png", "aircraft.png", "aircraft-r.png", "arrow.png", "dot.png", "dot_red.png", "default.png", "info-dark.png", "warning-dark.png", "warning-red.png", "slow_sog.png", "stop_sog.png", "海底主基站.png", "石油平台.png", "岸基站.png", "circle-red.png", "circle-green.png", "circle-blue.png", "circle-yellow.png", "circle-purple.png", "circle-black.png", "circle-white.png"];