Ant Design of Vue 之 rowKey 问题

lxf2024-04-06 13:41:12

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

  warning.js?2149:7 Warning:

  [antdv: Table] Each record in dataSource of table should have a unique

  `key` prop, or set `rowKey` of Table to an unique primary key,

  Ant Design of Vue 之 rowKey 问题

  解决办法:  [  :rowKey ]  

  带冒号的表示绑定的是表达式不带的表示绑定的就是值

  方法一:

  方法二:

  方法三: