text: import Vue from "vue";
  import App from "./App.vue";
  import VueRouter from "vue-router";
  import { routes } from "@/routes";
  
  Vue.config.productionTip = false;
  
  Vue.use(VueRouter);
  const router = new VueRouter({ routes });
  
  router.beforeEach((to, from, next) => {
    console.log("global beforeEach");
    next();
  });
  
  new Vue({
    router,
    render: h => h(App)
  }).$mount("#app");
  