text: import Vue from 'vue'
  import Router from 'vue-router'
  
  Vue.use(Router)
  
  import { basis } from './routerConfig'
  
  const createRouter = () => new Router({
    // mode: 'history', // require service support
    scrollBehavior: () => ({ y: 0 }),
    routes: basis
  })
  
  const router = createRouter()
  
  export function resetRouter() {
    const newRouter = createRouter()
    router.matcher = newRouter.matcher // reset router
  }
  
  export default router
  