Each record in table should have a unique key
prop,or set rowKey
to an unique primary key
在线翻译:表中的每个记录都应该有一个唯一的“key”道具,或者将“rowKey”设置为唯一的主键
原因:缺少主键
解决方法:
在a-table组件中加入:rowKey=“(record,index)=> index”
<a-table
:rowKey="(record,index)=> index">
</a-table>