umijs控制台报错:Warning: Each child in a list should have a unique “key“ prop.


...
<Table columns={columns} dataSource={users.data} rowKey='id'/>
...

加上rowKey属性指定列id为key,就不会再出现警告了

猜你喜欢

转载自blog.csdn.net/chendongpu/article/details/111592079