app.js 876 B

123456789101112131415161718192021222324252627282930313233
  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. // 通用store
  10. import store from '@/store/store.js';
  11. // router
  12. import router from './router/index.js';
  13. /* 引入自己写的全局样式 */
  14. import '~/assets/css/xt/element.css';
  15. // 导出Excel的方法
  16. import { PEhandleDownloadExcelForElTable } from '~/utils/personalExtension.js';
  17. Vue.prototype.PEhandleDownloadExcelForElTable = PEhandleDownloadExcelForElTable;
  18. // 关闭生产模式下给出的提示
  19. Vue.config.productionTip = false;
  20. /* eslint-disable no-new */
  21. new Vue({
  22. el: '#app',
  23. router,
  24. store,
  25. components: { App },
  26. template: '<App/>'
  27. });