路由报错RangeError: Maximum call stack size exceeded at redirect (vue-router.esm.js?8c4f:1394:1)

本文主要介绍了报错
[Vue warn]: Error in render: “RangeError: Maximum call stack size exceeded”

found in

—>
at src/layout/components/Sidebar/Link.vue
at src/layout/components/Sidebar/SidebarItem.vue
at packages/menu/src/menu.vue
at src/layout/components/Sidebar/index.vue
at src/layout/index.vue
at src/App.vue

vue.runtime.esm.js?2b0e:1888 RangeError: Maximum call stack size exceeded
at redirect (vue-router.esm.js?8c4f:1394:1)
路由报错RangeError: Maximum call stack size exceeded at redirect (vue-router.esm.js?8c4f:1394:1)_第1张图片

这种情况一般是:找不到对应的路由或组件,

我代码报错原因:没有配置404页面路由,但是设置跳到404页面;解决方案:注释掉使用404路由或者配置404路由

路由报错RangeError: Maximum call stack size exceeded at redirect (vue-router.esm.js?8c4f:1394:1)_第2张图片

你可能感兴趣的:(Bug,ui,elementui,vue.js)