main.js 440 B

1234567891011121314151617181920
  1. import Vue from 'vue';
  2. import ElementUI from 'element-ui';
  3. import 'element-ui/lib/theme-chalk/index.css';
  4. import App from './App.vue';
  5. import router from './router';
  6. import axios from 'axios';
  7. import {post,fetch,patch,put} from './utils/http';
  8. Vue.use(ElementUI);
  9. Vue.prototype.$post = post;
  10. Vue.prototype.$fetch = fetch;
  11. Vue.prototype.$patch = patch;
  12. Vue.prototype.$put = put;
  13. new Vue({
  14. el: '#app',
  15. router,
  16. render: h => h(App)
  17. });