sword版本在chrome浏览器报错:same key, `desc-2`

Bug 未结 2 1899
hnmas
hnmas 2019-05-20 15:41

使用 chrome 浏览器时,首次访问正常,但console报错:Encountered two children with the same key, `desc-2`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version,这时如果重新刷新页,左侧菜单就不能显示了,如何处理?

2条回答
  •  hnmas
    hnmas (楼主)
    2019-05-20 15:54

    使用 edge浏览器也有这个报错,但刷新时不影响左侧菜单显示。

提交回复