main.js 744 B

1234567891011121314151617181920212223
  1. // The Vue build version to load with the `import` command
  2. // (runtime-only or standalone) has been set in webpack.base.conf with an alias.
  3. import Vue from 'vue'
  4. import App from './App'
  5. import ElementUI from 'element-ui';
  6. import 'element-ui/lib/theme-chalk/index.css';
  7. import publicMethods from './assets/publicMethods';
  8. import md5 from '../static/md5';
  9. Vue.use(ElementUI);
  10. // 引入api
  11. import axios from 'axios' // 接口封装,请求拦截
  12. Vue.prototype.$axios = axios
  13. Vue.prototype.$md5 = md5;
  14. Vue.prototype.$public = publicMethods;
  15. Vue.config.productionTip = false;
  16. // Vue.prototype.$axios.defaults.baseURL = 'http://192.168.2.186:8090'
  17. /* eslint-disable no-new */
  18. new Vue({
  19. el: '#app',
  20. components: { App },
  21. template: '<App/>'
  22. })