dvajs / dva

🌱 React and redux based, lightweight and elm-style framework. (Inspired by elm and choo)
https://dvajs.com/
MIT License
16.25k stars 3.17k forks source link

官方文档的项目实战启动会报错 #1082

Closed oldturkey closed 7 years ago

oldturkey commented 7 years ago

https://ant.design/docs/react/practical-projects-cn

chrome报错:Warning: Each record in table should have a unique key prop,or set rowKey to an unique primary key. table中的record没有 unique key 属性

oldturkey commented 7 years ago

在table里增加了 rowKey="id" 但是页面没有渲染antui。 不知道原因出在哪, 是因为官方文档的版本是7.0的,现在已经是7.8了么?

sorrycc commented 7 years ago

antd 的问题请到 https://github.com/ant-design/ant-design/issues 提问。

msdlisper commented 6 years ago

https://dvajs.com/guide/getting-started.html#connect-%E8%B5%B7%E6%9D%A5 这样目前也有这样的问题 解决: 在components/ProductList.js里加rowKey:

<Table rowKey="id"
      columns= {columns}
      dataSource={products}
    >
</Table>