1,beforEach
router.beforeach(to,from,next)=>{
console.log('1111')
}
2,afterEach
router.aftereach(to,from,next)=>{
console.log('222')