main.js 840 B

12345678910111213141516171819202122232425262728293031323334
  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 FastClick from 'fastclick'
  5. import { sync } from 'vuex-router-sync'
  6. import App from './App'
  7. import store from './libraries/store'
  8. import router from './libraries/router'
  9. import plugins from './libraries/plugins'
  10. import ElementUI from 'element-ui';
  11. import 'element-ui/lib/theme-chalk/index.css';
  12. Vue.use(plugins)
  13. Vue.use(ElementUI);
  14. sync(store, router, { moduleName: 'route' })
  15. FastClick.attach(document.body)
  16. Vue.config.productionTip = false
  17. /* eslint-disable no-new */
  18. // new Vue({
  19. // router,
  20. // render: h => h(App)
  21. // }).$mount('#app-box')
  22. const app = new Vue({
  23. name: 'root',
  24. store: store,
  25. router: router,
  26. render: h => h(App)
  27. })
  28. app.$mount('#app-box')