Ant design table 表格 报 Warning: Each record in table should have a unique `key` prop,or set `rowKey`

Ant design table 表格 报 Warning: Each record in table should have a unique `key` prop,or set `rowKey`



解决方法:

在table上添加唯一键值rowKey={reward => reward.id}

需注意 id 必须唯一 不能重复

你可能感兴趣的:(Ant design table 表格 报 Warning: Each record in table should have a unique `key` prop,or set `rowKey`)