同一个push 方法中,在路由守卫router.beforeEach()中接受的参数to.matched 不一样,这是为什么?
同一个push 方法中,在路由守卫router.beforeEach()中接受的参数to.matched 不一样,这是为什么?
比如下面:
在路由守卫router.beforeEach((to, from, next))接受的参数to,出现如下两种值的情况,这是为什么呢?
情况一:
情况二:
求大神解惑!