react antd5 Warning: Each child in a list should have a unique "key" prop.

Warning: Each child in a list should have a unique "key" prop.

说明:表格数据赋值给一个 key 值

<Table columns={columns} dataSource={data.map((item) => ({ ...item, key: item.id }))} />
posted @ 2023-07-27 12:01  DL·Coder  阅读(26)  评论(0编辑  收藏  举报