12345678910111213141516171819 |
- import Vue from 'vue'
- import App from './App.vue'
- import router from './router'
- import store from './store'
- // import axios from 'axios'
- // Vue.prototype.$axios = axios
- import {get,post,patch,put} from './libs/http'
- //定义全局变量
- Vue.prototype.$post = post
- Vue.prototype.$get = get
- Vue.prototype.$patch = patch
- Vue.prototype.$put = put
- Vue.config.productionTip = false
- new Vue({
- router,
- store,
- render: h => h(App)
- }).$mount('#app')
|