2023-01-18 [Vue warn]: Maximum r

2023-01-17  本文已影响0人  一块小板子

Maximum recursive updates exceeded in component
组件中超过最大递归更新


image.png
[Vue warn]: Maximum recursive updates exceeded in component <AppNavigation>. 
This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. 
Possible sources include component template, render function, updated hook or watcher source function. 

后来发现是我在props里写了.reverse()
:data="navigation.reverse()"

解决方案:
提前reverse(),不要写在props中

上一篇下一篇

猜你喜欢

热点阅读