text: import Vue from "vue";
  import VueRouter from "vue-router";
  import * as view from "./view/index.js";
  
  Vue.use(VueRouter)
  
  const router = new VueRouter({
      mode: 'history',
      linkActiveClass: 'active',
      scrollBehavior: () => ({y: 0}),
      routes: [
          {path: '/', component: view.IndexView}
      ]
  })
  
  router.beforeEach((to, from, next) => {
      next()
  })
  
  router.afterEach((route) => {
      Vue.bus.$emit('v-top-menu:reset')
  })
  
  export default router