123456789101112131415161718192021222324252627
  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 ElementUI from 'element-ui'
  6. import 'element-ui/lib/theme-chalk/index.css'
  7. import Cookies from 'vue-cookie'
  8. import './style/main.css'
  9. import router from './router'
  10. import Ajax from './util/ajax'
  11. import api from './util/api'
  12. import store from './store'
  13. Vue.use(ElementUI)
  14. Vue.use(Cookies)
  15. Vue.config.productionTip = false
  16. Vue.prototype.$api = api
  17. Vue.prototype.$ajax = Ajax
  18. /* eslint-disable no-new */
  19. new Vue({
  20. el: '#app',
  21. router,
  22. store,
  23. components: { App },
  24. template: '<App/>'
  25. })