main.js 983 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  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 './App';
  5. import router from './router';
  6. import 'element-ui/lib/theme-chalk/index.css';
  7. import Less from 'Less';
  8. import { Tabs, TabPane,Icon,Loading ,MessageBox} from 'element-ui';
  9. import {Toast } from 'vant';
  10. import '@vant/touch-emulator';
  11. import 'lib-flexible/flexible';
  12. import axios from "axios";
  13. // Vue.use(VideoPlayer)
  14. Vue.prototype.$axios = axios;
  15. Vue.config.productionTip = false
  16. Vue.use(Tabs);
  17. Vue.use(TabPane);
  18. Vue.use(Icon);
  19. Vue.use(Loading);
  20. MessageBox.install=(Vue)=>{
  21. Vue.prototype.$alert=MessageBox.alert;
  22. Vue.prototype.$confirm=MessageBox.confirm;
  23. }
  24. Vue.use(MessageBox);
  25. Vue.use(Toast);
  26. axios.defaults.headers.post["Content-type"] = "application/json"
  27. /* eslint-disable no-new */
  28. new Vue({
  29. el: '#app',
  30. router,
  31. components: { App },
  32. template: '<App/>'
  33. })