main.js 608 B

123456789101112131415161718192021222324252627
  1. import Vue from 'vue';
  2. import App from './App.vue';
  3. import router from './router';
  4. import store from './store';
  5. import '@/plugins/element.js';
  6. import '@/plugins/vant';
  7. import '@/plugins/axios';
  8. import '@/plugins/check-res';
  9. import '@/plugins/meta';
  10. import '@/plugins/filters';
  11. import '@/plugins/loading';
  12. import '@/plugins/var';
  13. import '@/plugins/methods';
  14. import '@/plugins/setting';
  15. import '@/plugins/weixin';
  16. import InitStomp from '@/plugins/stomp';
  17. Vue.config.productionTip = false;
  18. new Vue({
  19. router,
  20. store,
  21. render: h => h(App),
  22. }).$mount('#app');
  23. InitStomp();
  24. window.vm = new Vue({
  25. router,
  26. });