main.js 989 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. // The Vue build version to load with the `import` command
  2. // (runtime-only or standalone) has been set in webpack.base.conf with an alias.
  3. import Vue from 'vue'
  4. import App from './App'
  5. import router from './router'
  6. // 导入axios 及 自定义配置
  7. import axios from 'axios'
  8. import axiosConfig from '../static/js/axios-config.js'
  9. // 引入font awesome图标库
  10. import 'font-awesome/css/font-awesome.min.css'
  11. // 引入bootstrap
  12. import { BootstrapVue, IconsPlugin } from 'bootstrap-vue'
  13. import 'bootstrap/dist/css/bootstrap.css'
  14. import 'bootstrap-vue/dist/bootstrap-vue.css'
  15. // 引入element
  16. import ElementUI from 'element-ui'
  17. import 'element-ui/lib/theme-chalk/index.css'
  18. // 导入vueX
  19. import store from './store'
  20. Vue.prototype.$axios = axios
  21. Vue.use(axiosConfig)
  22. Vue.use(BootstrapVue)
  23. Vue.use(IconsPlugin)
  24. Vue.use(ElementUI)
  25. Vue.config.productionTip = false
  26. /* eslint-disable no-new */
  27. new Vue({
  28. el: '#app',
  29. router,
  30. store,
  31. components: { App },
  32. template: '<App/>'
  33. })