src/main.js中的一些引用

import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import axios from 'axios'
import promise from 'es6-promise'
import './tools/flexible'
import './tools/kl'
import 'scrolling-element'
 
promise.polyfill()
Vue.config.productionTip = false
axios.defaults.headers.post['Content-Type'] =
'application/x-www-form-urlencoded'

Vue.prototype.axios = axios

new Vue({
router,
store,
render: h => h(App)
}).$mount('#app')
原文地址:https://www.cnblogs.com/ngdty/p/10721563.html