main.js 446 B

12345678910111213141516171819
  1. import Vue from 'vue'
  2. import App from './App.vue'
  3. import router from './router'
  4. import store from './store'
  5. // import axios from 'axios'
  6. // Vue.prototype.$axios = axios
  7. import {get,post,patch,put} from './libs/http'
  8. //定义全局变量
  9. Vue.prototype.$post = post
  10. Vue.prototype.$get = get
  11. Vue.prototype.$patch = patch
  12. Vue.prototype.$put = put
  13. Vue.config.productionTip = false
  14. new Vue({
  15. router,
  16. store,
  17. render: h => h(App)
  18. }).$mount('#app')