// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import store from './store/index'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import * as echarts from 'echarts'
import config from '../config/config.base'
import $ from 'jquery'
import messageVue from './js/waringJs'
import waringTip from './js/waringTip'
import gshDateTimeVue from './js/timerGsh'
window.$ = $
if (process.env.VUE_APP_MODE === 'test') {
  Vue.prototype.requestUrl = config.testRequestUrl
} else if (process.env.VUE_APP_MODE === 'prod') {
  Vue.prototype.requestUrl = config.prodRequestUrl
} else {
  Vue.prototype.requestUrl = config.baseURL
}

Vue.prototype.$echarts = echarts
Vue.config.productionTip = false
Vue.config.silent = true
Vue.use(ElementUI)
Vue.use(messageVue)
Vue.use(waringTip)
Vue.use(gshDateTimeVue)
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})