react新增数据报错,The above error occurred in the <Table> component,

使用antd,组件新增数据的时候报错如下:提示时传输的数据格式不对,修改一下就好了。
react新增数据报错,The above error occurred in the <Table> component,_第1张图片
意思就是,错误发生在以上错误发生在

组件中,考虑在树中添加一个错误边界来定制错误处理行为。也就是传入的数据格式不对

原来新增数据时候的代码:
react新增数据报错,The above error occurred in the <Table> component,_第2张图片

修改后:
react新增数据报错,The above error occurred in the <Table> component,_第3张图片

问题也就是传入

的数据格式不对,检查一下传入的数据格式。

你可能感兴趣的:(react)