Table 組件報(bào)錯(cuò):Warning: Each child in a list should have a unique "key" prop.
解決:
如果dataSource里有key值就不會(huì)報(bào)錯(cuò)骂倘,沒(méi)有key值的茂洒,可以設(shè)置rowKey
<Table columns={} dataSource={} rowKey="_id"/>
Table 組件報(bào)錯(cuò):Warning: Each child in a list should have a unique "key" prop.
解決:
如果dataSource里有key值就不會(huì)報(bào)錯(cuò)骂倘,沒(méi)有key值的茂洒,可以設(shè)置rowKey
<Table columns={} dataSource={} rowKey="_id"/>