码迷,mamicode.com
首页 > 其他好文 > 详细

Each record in table should have a unique `key` prop,or set `rowKey` to an unique primary key.

时间:2018-12-13 20:53:31      阅读:1584      评论:0      收藏:0      [点我收藏+]

标签:body   键值对   inf   解决   键值   数据   gpo   log   com   

1.react 报错

Each record in table should have a unique `key` prop,or set `rowKey` to an unique primary key.

表中的每个记录应该有唯一的“key”支持,或者将“rowKey”设置为唯一的主键。

2.解决方案

方案一:对数据经常处理,加入key的键值对

技术分享图片

方案二:设置rowKey

技术分享图片

Each record in table should have a unique `key` prop,or set `rowKey` to an unique primary key.

标签:body   键值对   inf   解决   键值   数据   gpo   log   com   

原文地址:https://www.cnblogs.com/edensyd/p/10116280.html

(2)
(1)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!