【发布时间】:2021-10-30 14:26:46
【问题描述】:
我一直在尝试用react js开发一个应用,这个错误来了。
出现此错误的行是:
else{
history.push({
pathname:"/fullpage-error",
state:{details:e.response.data.errors[0]} //this is the main line of error
});
}
}
};
export default globalAPIFunction;
【问题讨论】:
-
似乎响应未定义。使用 console.log('response', e.response) 查看它的输出
标签: reactjs