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

猜你喜欢

转载自www.cnblogs.com/gwkzb/p/12654680.html