没有设置的key时,会出现以下警告
Warning: [antd: Table] Each record in dataSource of table should have a unique `key` prop, or set `rowKey` of Table to an unique primary key
设置key
<a-table
bordered
:columns="columns"
:data-source="tableData"
:pagination="false"
:scroll="{ y: 320 }"
:height="320"
:rowKey="item=>item.id"
size="small"
/>