📅  最后修改于: 2022-03-11 15:03:09.888000             🧑  作者: Mango
import { useHistory } from "react-router-dom";
function demo () {
let history = useHistory();
const goToPreviousPath = () => {
history.goBack()
}
return (
):
}