main.js 966 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. Vue.prototype.$axios = axios
  22. Vue.prototype.tableHieght = 'calc(100vh - 302px)'
  23. Vue.config.productionTip = false;
  24. Vue.component('tableLayout', tableLayout)
  25. Vue.component('sort', sort)
  26. Vue.use(ElementUI);
  27. new Vue({
  28. router,
  29. store,
  30. render: (h) => h(App),
  31. }).$mount('#app');