main.js 542B

123456789101112131415161718192021
  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 router from './router'
  8. import Ajax from './util/ajax'
  9. Vue.use(ElementUI)
  10. Vue.config.productionTip = false
  11. const http = new Ajax()
  12. Vue.prototype.$ajax = http
  13. /* eslint-disable no-new */
  14. new Vue({
  15. el: '#app',
  16. router,
  17. components: { App },
  18. template: '<App/>'
  19. })