![设置路由导航守卫(router.beforeEach报错vue-router.esm.js?8c4f:2117 RangeError: Maximum call stack size exceed_dong.wang的博客-CSDN博客_在路由守卫中写next('/login')会报错vue- router.esm.js?8c4f:192 设置路由导航守卫(router.beforeEach报错vue-router.esm.js?8c4f:2117 RangeError: Maximum call stack size exceed_dong.wang的博客-CSDN博客_在路由守卫中写next('/login')会报错vue- router.esm.js?8c4f:192](https://img-blog.csdnimg.cn/20200423182757683.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3dhbmdkb25nOTM5NQ==,size_16,color_FFFFFF,t_70)
设置路由导航守卫(router.beforeEach报错vue-router.esm.js?8c4f:2117 RangeError: Maximum call stack size exceed_dong.wang的博客-CSDN博客_在路由守卫中写next('/login')会报错vue- router.esm.js?8c4f:192
router.replace, next add query in router.beforeEach, should use replace but push · Issue #1810 · vuejs/vue-router · GitHub
![vue.js - Next('profile') inside router.beforeEach gives error, need help to figure it out - Stack Overflow vue.js - Next('profile') inside router.beforeEach gives error, need help to figure it out - Stack Overflow](https://i.stack.imgur.com/kSFq0.png)
vue.js - Next('profile') inside router.beforeEach gives error, need help to figure it out - Stack Overflow
![user router.beforeEach next('/login') throw Unexpected error when starting the router: Error: No match for undefined · Issue #365 · vuejs/router · GitHub user router.beforeEach next('/login') throw Unexpected error when starting the router: Error: No match for undefined · Issue #365 · vuejs/router · GitHub](https://user-images.githubusercontent.com/33919751/87241417-7f95a800-c455-11ea-84bf-4282358af4e4.png)