if (response.status === 401) { // Unauthorized //this.props.history.push('/login'); HERE I NEED ACCESS TO HISTORY dispatch(groupsFetchErrored({error: response.data.messa
我对AJAX和history.js完全陌生。我不知道我在做什么,但是history.js ()看起来就是我需要的。在测试中,我不知道从哪里开始。任何帮助都是非常感谢的!<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.1/jquery.min.js-- History