Maximum recursive updates exceeded in component
组件中超过最大递归更新
[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中