// 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 https from './api/https'
import axios from 'axios';
import publicMethods from './publicMethods';
import md5 from 'js-md5';
import YDUI from 'vue-ydui'; /* 相当于import YDUI from 'vue-ydui/ydui.rem.js' */
import 'vue-ydui/dist/ydui.rem.css';

Vue.use(YDUI);
Vue.config.productionTip = false;
Vue.prototype.$public = publicMethods;
Vue.prototype.$md5 = md5;
Vue.prototype.post=axios.post;
Vue.prototype.get=axios.get;
Vue.prototype.$axios=axios;

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