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}

/>