Loading

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')
posted @ 2020-02-01 15:42  mahoshojo  阅读(208)  评论(0编辑  收藏  举报