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

Posted edensyd

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Each record in table should have a unique `key` prop,or set `rowKey` to an unique primary key.相关的知识,希望对你有一定的参考价值。

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.的主要内容,如果未能解决你的问题,请参考以下文章