import router from './index' router.beforeEach(async (to, from, next) => { // todo document.title = to.meta.title next() }) router.afterEach((to, from) => { // todo })