vue-cli V3 + elementui

npm i element-ui -S
npm i axios -S
npm i qs -S
import Vue from 'vue'
import App from './App.vue'
import router from './router'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import Axios from 'axios'
import Qs from 'qs'

Vue.config.productionTip = false
Vue.prototype.$axios = Axios
Vue.prototype.$qs = Qs

Vue.use(ElementUI)

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
上一篇:poj 1873


下一篇:js --》 如何防止在请求接口时,禁止重复使用该接口?(重复提交问题)