解决办法:解构的时候给默认值
const { reportLists = [] } = this.state;
本文标题:7.如何避免从state里面取值,第一次为未定义
本文链接:https://www.haomeiwen.com/subject/oegructx.html
网友评论