main.js 706 B

12345678910111213141516171819202122232425
  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 Vuex from 'vuex'
  5. import App from './App'
  6. import router from './router'
  7. import ElementUI from 'element-ui'
  8. import 'element-ui/lib/theme-chalk/index.css'
  9. import 'bootstrap3/dist/css/bootstrap.min.css'
  10. import 'font-awesome/css/font-awesome.css'
  11. import {globalMixins,globalPlugin} from "./common/globalMixins.js"
  12. import {store} from "./store/index.js";
  13. Vue.use(ElementUI);
  14. Vue.use(globalPlugin);
  15. Vue.mixin(globalMixins);
  16. /* eslint-disable no-new */
  17. new Vue({
  18. el: '#app',
  19. router,
  20. store,
  21. components: { App },
  22. template: '<App/>'
  23. })