0
点赞
收藏
分享

微信扫一扫

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

萨科潘 2022-05-27 阅读 55

问题描述

使用antd中的Table时,一直报这个错

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

  searchList:[
{
num:'1',
name:'即时配送行业',
firstCategory:'配送服务',
age:'18-46岁',
area:'企业经营区域',
female:'6.31%',
male:'93.69%',
money1:'90%',
money2:'10%',
key: '1'
}
]

这边的key一定要写!!!就不会报错啦


举报

相关推荐

0 条评论