代码正常运行,但是这一块报红

来源:6-6 前后端分页功能整合

尘同学

2021-06-01

图片描述
控制台警告:Warning: [antdv: Each record in table should have a unique key prop,or set rowKey to an unique primary key.]

warning.js?2149:6 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,
代码正常运行,但是表格这一部分一直报错,老师麻烦看下

写回答

1回答

甲蛙

2021-06-02

报红应该只是IDEA校验代码规范,不影响

报错的是让你配置个rowKey属性,每一行应该有个唯一的rowKey

0
0

Spring Boot+Vue3前后端分离,实战wiki知识库系统

一课掌握前后端最火框架,更有职场竞争力

2524 学习 · 1671 问题

查看课程