设置路由导航守卫(router.beforeEach报错 vue-router.esm.js?8c4f:2117 RangeError: Maximum call stack size exceed

运行不报错,控制台报错如图,后来发现是router.beforeEach()中参数顺序书写错误,修改过来就好了
设置路由导航守卫(router.beforeEach报错 vue-router.esm.js?8c4f:2117 RangeError: Maximum call stack size exceed_第1张图片
设置路由导航守卫(router.beforeEach报错 vue-router.esm.js?8c4f:2117 RangeError: Maximum call stack size exceed_第2张图片

你可能感兴趣的:(设置路由导航守卫(router.beforeEach报错 vue-router.esm.js?8c4f:2117 RangeError: Maximum call stack size exceed)