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

import axios from 'axios'
Vue.prototype.$axios = axios //全局注册，使用方法为:this.$axios

import qs from 'qs'
Vue.prototype.qs = qs //全局注册，使用方法为:this.qs

Vue.use(ElementUI);

axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded;charset=UTF-8';
axios.defaults.timeout = 30000;
axios.defaults.baseURL = 'http://47.104.218.216:8006/' //线下杨明明
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/>'
})
