ant design vue Table常见报错:
Each record in table should have a unique `key` prop,or set `rowKey` to an unique primary key.
解决办法:
// 在设置table格式的位置加入:rowKey="(record,index)=>{return index}"
<a-table bordered size="middle"
:dataSource="dataSource"
:columns="columns"
:pagination="false"
:rowKey="(record,index)=>{return index}">
</a-table>
如果觉得可以就点个👍吧,欢迎粉丝收藏,土豪打赏,你的鼓励将是我创作的最大动力!
qq群933053581