app.js 859 B

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