React表格报错Each record in table should have a unique `key` prop,or set `rowKey` to an unique primary key.

解决:

<Table
bordered
rowKey={record=>record.id} //解决
components={this.components}
columns={columns}
dataSource={this.state.tData}
pagination={this.state.pagination}
onChange={this.handleTableChange}
/>
posted @ 2019-01-16 10:47  刘丑丑鱼香肉丝  阅读(2704)  评论(0编辑  收藏  举报