7.如何避免从state里面取值,第一次为未定义 2020-06-20 本文已影响0人 逸笛 解决办法:解构的时候给默认值 const { reportLists = [] } = this.state;