vue动态添加路由时执行next({ ...to, replace: true }) 方法不知道为啥会出现死循环?

新手上路,请多包涵

通过router.beforeEach((to, from, next) 方法进行动态的添加路由,最后执行next({ ...to, replace: true })的时候出现死循环
image.png

阅读 3.4k
1 个回答
推荐问题