import Vue from 'vue'
import ElementUI from 'element-ui';
// import '../theme/index.css'
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);
import App from './App'
import router from './router'

import axios from 'axios'
Vue.prototype.$axios = axios //全局注册，使用方法为:this.$axios
// 图片裁剪
import VueCropper from 'vue-cropper'
Vue.use(VueCropper)

import qs from 'qs'
Vue.prototype.qs = qs //全局注册，使用方法为:this.qs
//导入全局样式
import './assets/css/global.css'

// axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded;charset=UTF-8';
// axios.defaults.timeout = 30000;
// axios.defaults.baseURL = 'http://39.106.113.84:8000/' //线下杨明明
// axios.defaults.withCredentials = true //axios请求时携带session
// axios.defaults.crossDomain = true 


Vue.config.productionTip = false

import 'babel-polyfill' //兼容IE11
require("babel-polyfill")

import promise from 'es6-promise'
promise.polyfill();


import './assets/icon/iconfont.css'

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
