其他分享
首页 > 其他分享> > Warning: [antdv: Each record in table should have a unique `key` prop,or set `rowKey` to an unique p

Warning: [antdv: Each record in table should have a unique `key` prop,or set `rowKey` to an unique p

作者:互联网

在使用ant 的表格组件时报了这样的错误

0 代码这样 0 这样写就不会报错了 0    就是把 :rowKey="record=> record.id"改为了 :rowKey="(record,index)=> index"  

标签:index,set,record,报错,key,rowKey,unique
来源: https://www.cnblogs.com/yang-cy/p/15467854.html