星火管控前端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

main.js 757B

1234567891011121314151617181920212223242526272829
  1. import Vue from "vue";
  2. import ViewUI from "view-design";
  3. import axios from "axios";
  4. import uploader from "vue-simple-uploader";
  5. import App from "./App.vue";
  6. import router from "./router";
  7. import store from "./store";
  8. import { message } from "@/utils/resetMessage.js";
  9. import ImgPreview from "./components/ImgPreview";
  10. Vue.use(uploader);
  11. Vue.use(ViewUI);
  12. Vue.use(ImgPreview);
  13. Vue.prototype.$Message = message;
  14. Vue.prototype.$api = window._config;
  15. // 全局事件总线
  16. Vue.prototype.$EventBus = new Vue();
  17. axios.defaults.baseURL = window._config.baseUrl;
  18. Vue.prototype.axios = axios;
  19. window.axios = axios;
  20. Vue.config.productionTip = false;
  21. window.vue = new Vue({
  22. router,
  23. store,
  24. render: (h) => h(App)
  25. }).$mount("#app");