vue学习中遇到的错误 Duplicate keys detected: '[object Object]'. This may cause an update error.


前端入门自学,说错的请大神指点。

Avoid using non-primitive value as key, use string/number value instead.
Duplicate keys detected: ‘[object Object]’. This may cause an update error.

 

 运行后出现这些警告,意思是检测到重复的键值。

 

 把:key里 的值改成以下两种情况之一就可以了。

 

 

 

 

______________

链接:https://blog.csdn.net/weixin_42017905/article/details/100198369


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM