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')
posted @ 2019-04-17 09:45  ngdty  阅读(1364)  评论(0编辑  收藏  举报