main.js 782 B

12345678910111213141516171819202122232425262728
  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 router from './router'
  6. import ElementUI from 'element-ui';
  7. import 'element-ui/lib/theme-chalk/index.css';
  8. import './assets/icon/iconfont.css'
  9. import store from './store/index.js';
  10. import axios from 'axios';
  11. axios.defaults.baseURL = 'http://132.232.92.186:8888';
  12. //axios.defaults.baseURL = 'http://localhost:5256/';
  13. import { Message } from "element-ui";
  14. Vue.prototype.$message = Message
  15. Vue.prototype.$axios = axios;
  16. Vue.config.productionTip = false
  17. Vue.use(ElementUI);
  18. /* eslint-disable no-new */
  19. new Vue({
  20. el: '#app',
  21. router,
  22. store,
  23. components: { App },
  24. template: '<App/>'
  25. })