main.js 664 B

123456789101112131415161718192021222324252627
  1. import Vue from "vue";
  2. import App from "./App";
  3. import store from "./store";
  4. import router from "./router";
  5. import * as utils from "./utils/index.js";
  6. import "@/vab";
  7. import "@/vxeTable";
  8. import BaiduMap from "vue-baidu-map";
  9. /**
  10. * @description 正式环境默认使用mock,正式项目记得注释后再打包
  11. */
  12. // if (process.env.NODE_ENV === "production") {
  13. // const { mockXHR } = require("@/utils/static");
  14. // mockXHR();
  15. // }
  16. Vue.config.productionTip = false;
  17. Vue.prototype.$_common = utils;
  18. Vue.use(BaiduMap, {
  19. ak: "n0g6befznYg5jVx5r7GcvjOBUewHV9wa",
  20. });
  21. new Vue({
  22. el: "#vue-admin-beautiful-pro",
  23. store,
  24. router,
  25. render: (h) => h(App),
  26. });