import Vue from 'vue'import Router from 'vue-router'import { routes } from './routes'import logic from './logic'Vue.use(Router)const router = new Router({ // mode: 'history', routes})router.beforeEach(logic.beforeEach)router.afterEach(logic.afterEach)export default router复制代码