我在前端使用,我得到了这个错误:index.js:1 Warning: Cannot update during an existing state transition (such as withinSUCCESS', res.data) history.pushauthLog.isAuthenticated){
console.log(
我读过很多关于react的东西--路由器v4和npm历史库,到目前为止,似乎都没有对我有帮助。在使用history.push()方法更改url时,我的代码正在按预期的方式工作,直到它应该导航并执行简单的重定向。URL正在更改为指定的路由,但不执行按钮按下的重定向操作。我希望按钮按下可以在不使用{forceRefresh:true}的情况下进行简单的重定向,然后重新加载整个页面。import React from 'r