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

Myth丶恋晨 2022-12-23 06:59 190阅读 0赞

问题描述

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

20201123170234297.png

  1. searchList:[
  2. {
  3. num:'1',
  4. name:'即时配送行业',
  5. firstCategory:'配送服务',
  6. age:'18-46岁',
  7. area:'企业经营区域',
  8. female:'6.31%',
  9. male:'93.69%',
  10. money1:'90%',
  11. money2:'10%',
  12. key: '1'
  13. }
  14. ]

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

发表评论

表情:
评论列表 (有 0 条评论,190人围观)

还没有评论,来说两句吧...

相关阅读