/**方法一:清除props.location.state*/
window.history.replaceState({}, document.title);
/**方法二:清除props.location.state */
props.history.replace({
...props.location,
state: undefined,
});
/**方法一:清除props.location.state*/
window.history.replaceState({}, document.title);
/**方法二:清除props.location.state */
props.history.replace({
...props.location,
state: undefined,
});