我在项目的这一部分发现以下错误:
async componentDidMount() {
let date = moment().format('DD-MM-YYYY')
let fetch = await emailService.getUF(date)
if (fetch) {
this.setState({
indicador: fetch.data.serie[0] ? fetch.data.serie[0].valor : 0
})
}
}
在另一个项目中,我可以正常运行,但在主项目中则没有问题。完全一样。