antd数据渲染加key

55 阅读1分钟

数据出来了,但是报错没key

image.png

解决方法把数据先给到arr,然后forEach循环给他加给key进去

image.png