Summary: vue error in the project: Maximum call stack size exceeded

一、

Scenario 1:

在路由守卫中
router.beforeEach((to, from, next) => {})
针对 to 的路径进行判断时条件错误,导致页面陷入死循环
例:to.name.indexOf("XXX") > 0
    当路径中包含目标文字在首位时,返回是0,导致页面白屏

Scenario 2: the introduction of a component in the page name and page name is repeated, resulting in pages into the loop,

 

Published 15 original articles · won praise 5 · Views 6377

Guess you like

Origin blog.csdn.net/heyNewbie/article/details/103990635