萨科潘

关注

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

萨科潘

关注

阅读 55

2022-05-27

问题描述

使用antd中的Table时,一直报这个错

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

  searchList:[
{
num:'1',
name:'即时配送行业',
firstCategory:'配送服务',
age:'18-46岁',
area:'企业经营区域',
female:'6.31%',
male:'93.69%',
money1:'90%',
money2:'10%',
key: '1'
}
]

这边的key一定要写!!!就不会报错啦


相关推荐

柠檬果然酸

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

柠檬果然酸 63 0 0

爱动漫建模

Warning: Each child in a list should have a unique “key“ prop.

爱动漫建模 56 0 0

那小那小

vue+antd 解决的rowKey未指定报错Each record in table should have a unique

那小那小 99 0 0

Mhhao

使用 antd Table 组件提示错误- Each child in a list should have a unique “key“ prop

Mhhao 32 0 0

目标践行者

umijs控制台报错:Warning: Each child in a list should have a unique “key“ prop.

目标践行者 71 0 0

写心之所想

React + Antd +SpringBoot前后端开发,前端出现的问题Each child in a list should have a unique “key“ prop.

写心之所想 35 0 0

北冥有一鲲

primary key 和 unique区别

北冥有一鲲 91 0 0

精彩评论(0)

0 0 举报