Ant Design Table报错:Warning: [antdv: Each record in table should have a unique `key` prop,or set `rowKey` to an unique primary key.]

 

 

 a-table 里加上这一段 

:rowKey="(record,index)=> index"
 
:rowKey="record => record.dataIndex"


posted @ 2021-05-27 15:08  码农造神记  阅读(317)  评论(0)    收藏  举报