Check the render method of `MsContractListList`. See https://fb.me/react-warning-keys for more information.
in div (created by MsContractListList)
in MsContractListList (created by MsContractList)
in div (created by MsContractList)
in MsContractList (created by Connect(MsContractList))
in Connect(MsContractList) (created by Route)
in Route (created by MsLayout)
in Switch (created by MsLayout)
in div (created by Basic)
in Basic (created by Adapter)
in Adapter (created by MsLayout)
in div (created by BasicLayout)
in BasicLayout (created by Adapter)
in Adapter (created by MsLayout)
in div (created by BasicLayout)
in BasicLayout (created by Adapter)
in Adapter (created by MsLayout)
in div (created by BasicLayout)
react Each child in an array or iterator should have a unique "key" prop.
循环的时候报该错误,在循环父级节点上加上key,否则控制台报错,虽然并没有什么影响
item.contracts.map((itemList, j: number) => {
const one = (
<div key={"div2" + j.toString()} className="listMargin-left">
<Tag color="#87d068">签约</Tag>
</div>
);
infoList.push(one)
});