Avoid using non-primitive value as key, use string/number value instead.
意思是:避免使用非基本值作为键,而是使用字符串/数字值。
Duplicate keys detected: '[object Object]'. This may cause an update error.
意思是:检测到重复键:'[object object]'。这可能会导致更新错误。
项目代码
报错的意思是 不要用对象或是数组作为key,用string或value作为key
我们可以将key的值改为index;即可
解决方式如下:
搞定!
扫描二维码关注公众号,回复:
14921040 查看本文章