import Vue from 'vue'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import App from './App.vue'
import router from './router'
// 表格导出
import JsonExcel from 'vue-json-excel'
import './assets/css/base.css'
Vue.component('downloadExcel', JsonExcel)

Vue.config.productionTip = false
const imgErr = {
  data () {
    return {
      defaultImg: 'this.src="' + require('./assets/img/IMGerror.png') + '"'
    }
  }
}
Vue.mixin(imgErr)
Vue.use(ElementUI)
new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
