- 博客(3)
- 收藏
- 关注
原创 如果后端表格列表接口传过来有一个的值是key,跟表格的自带的key属性名重复,会导致无法渲染且报错(前提是后端这个属性名死活不改,就是要前端处理一下,本来后端改一下属性名根本不会有这样的问题)
在掉列表接口的时候,重新换个属性名,再赋值到表格当中,就行了,不过要注意新增和修改的时候,注意这个key,要判断一下,否则会导致修改的传参错误。
2023-07-07 11:16:55 73 1
原创 Ant Design的表格如果想渲染同一个值,但列名不一样,应该怎么处理:
Warning: Encountered two children with the same key, `url`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and cou
2023-07-05 17:55:21 65 1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人