我尝试当用户成功登录,但好像没有努力改变位置。我使用“连接反应的路由器”:“^ 6.2.2”,这是代码:
...
yield put(authenticationActions.getAuthenticationRequestSuccess({
token,
authProfile,
companyProfile,
userProfile,
}));
yield put(push('/com'));
...
我有终极版的Chrome插件,最后一个动作是:
{
type: '@@router/CALL_HISTORY_METHOD',
payload: {
method: 'push',
args: [
'/com'
]
}
}
但路径没有改变。任何想法,为什么?
您已经阅读类似于你这个新鲜GitHub issue?