antD表格警告:warning.js?2149:7 Warning: [antdv: Each record in table should have a unique
问题:antD控制台警告(Warning: [antdv: Each record in table should have a unique `key` prop,or set `rowKey` to an unique primary key.] )
回答:table里加 :rowKey="record=>record.id"
<s-table
ref="table"
size="default"
:columns="columns"
:data="loadData"
:alert="true"
:rowKey="record=>record.id"
:scroll="{ x: 1400 }"
>
</s-table>