main.js 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. import Vue from 'vue';
  2. import axios from "axios";
  3. import ElementUI from 'element-ui';
  4. // import 'element-ui/lib/theme-chalk/index.css';
  5. import App from './App.vue';
  6. import router from './router';
  7. import store from './store';
  8. import api from './api/api'
  9. import tool from './utils/tool'
  10. import FileType from './utils/matchingFeilType'
  11. import upload from './api/upload'
  12. import './style/style.css'
  13. import './style/theme/index.css'
  14. import tableLayout from './components/dynamic-table'
  15. import sort from './components/sort'
  16. import '@/style/theme/font-icon/iconfont.css'
  17. Vue.prototype.$api = api
  18. Vue.prototype.$upload = upload
  19. Vue.prototype.tool = tool
  20. Vue.prototype.fileType = FileType
  21. let payment = {
  22. result:1
  23. }
  24. Vue.prototype.payment = payment
  25. Vue.prototype.payChangeFun = (fun) => {
  26. fun(payment)
  27. }
  28. Vue.prototype.$axios = axios
  29. Vue.prototype.tableHieght = 'calc(100vh - 302px)'
  30. Vue.config.productionTip = false;
  31. Vue.component('tableLayout', tableLayout)
  32. Vue.component('sort', sort)
  33. Vue.use(ElementUI);
  34. new Vue({
  35. router,
  36. store,
  37. render: (h) => h(App),
  38. }).$mount('#app');