单项选择题

A.router.beforeEach()
B.router.afterEach()
C.router.beforeLeave()
D.router.afterLeave()