警告:表的数据源中的每条记录都应该有一个唯一的“key”道具,或者将表的“rowKey”设置为一个唯一的主键,

antd desgin vue  报错  Warning: Each record in table should have a unique `key` prop,or set `rowKey` to an unique primary key.

 

 

 只需要添加

 :rowKey="record => record.id"

   即可。

 

相关文章: