Commit 6533f7fe by wangshuo

key添加

parent 006eb816
...@@ -6,7 +6,6 @@ class TreasureBox extends Component { ...@@ -6,7 +6,6 @@ class TreasureBox extends Component {
render() { render() {
return ( return (
<div> <div>
1111122222
<CommonContainer> <CommonContainer>
<TreasureRank /> <TreasureRank />
</CommonContainer> </CommonContainer>
......
...@@ -72,7 +72,7 @@ class TreasureRank extends Component { ...@@ -72,7 +72,7 @@ class TreasureRank extends Component {
<div className="rank-body"> <div className="rank-body">
{ {
rank.map((item, index) => ( rank.map((item, index) => (
<dl className="rank-item"> <dl className="rank-item" key={index}>
<dd className="rank-column"> <dd className="rank-column">
{ {
index <= 2 index <= 2
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment