app.js 927 B

12345678910111213141516171819202122232425262728293031323334353637
  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 '@/components/App.vue';
  5. // axios
  6. import '@/config/axios.js';
  7. // include
  8. import '@/config/include.js';
  9. import '~/assets/iconfont/iconfont.css';
  10. /* 引入自己写的全局样式 */
  11. // import '~/assets/css/theme/myelement.css';
  12. /* 引入自己写的公共样式 */
  13. import '~/assets/css/common.css';
  14. // 通用store
  15. import store from '@/store/store.js';
  16. // 项目自身的store
  17. import mystore from '~/store/index.js';
  18. // router
  19. import router from './router/index.js';
  20. // 新增项目状态管理 项目自理
  21. store.registerModule(['mystore'], mystore);
  22. // 关闭生产模式下给出的提示
  23. Vue.config.productionTip = false;
  24. /* eslint-disable no-new */
  25. new Vue({
  26. el: '#app',
  27. router,
  28. store,
  29. components: { App },
  30. template: '<App/>'
  31. });