0


前端报警告:Maximum recursive updates exceeded...打报到生产环境页面崩溃

开发笔记 vue3

一个细节问题找半天,特此记录下

在这里插入图片描述vue3 本地报警告:Maximum recursive updates exceeded. 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.
–》百度翻译:
超过了最大递归更新数。这意味着你有一个反应效应,它会改变自己的依赖关系,从而递归地触发自己。可能的来源包括组件模板、呈现函数、更新的钩子或观察者源函数。

解决方法

写的 v-for 循环 key 绑定的是一个对象,
!](https://img-blog.csdnimg.cn/51efe897d9cd463fac283ec3ca9648c5.png)

[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-dlGwe9rM-1680595727993)(htps://img-blog.csdnimg.cn/dba1feea1b714481ad985e2a3d5ed583.png)]key值更改为数据里的唯一值,保证不重复,

标签: 前端

本文转载自: https://blog.csdn.net/weixin_44221744/article/details/129955301
版权归原作者 小玉米001 所有, 如有侵权,请联系我们删除。

“前端报警告:Maximum recursive updates exceeded...打报到生产环境页面崩溃”的评论:

还没有评论