前言
表格组件报错,这由于 columns 中定义的默认 key 值在返回的数据中没有当前的这个字段造成的,一个是使用 rowKey 默认指定一个对应的键值对,或者使用类似 v-for 循环中的下标 index 来代替!
Warning: [antdv: Table] Each record in dataSource of table should have a unique `key`
解决方案
table 配置 rowKey 即可,如下所示:
:rowKey="(record,index) => {return index}"
配置实例如下:
...
