main.js 521 B

12345678910111213141516171819202122
  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. import ElementUI from 'element-ui'
  7. import 'element-ui/lib/theme-chalk/index.css'
  8. import http from './api'
  9. Vue.use(ElementUI)
  10. Vue.prototype.$http = http
  11. Vue.config.productionTip = false
  12. /* eslint-disable no-new */
  13. new Vue({
  14. el: '#app',
  15. router,
  16. components: { App },
  17. template: '<App/>'
  18. })