import Vue from "vue";
import "@/service/load";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import "./style/index.less";
import "amfe-flexible";
import vConsole from "vconsole";
import "@/assets/icons/index";
import "@/service/cherry-ui";

Vue.config.productionTip = false;
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount("#app");

window.addEventListener(
  "popstate",
  () => {
    router.isBack = true;
  },
  false
);

// if (process.env.NODE_ENV !== "development") {
// ! 上线后务必取掉
new vConsole();
// }
