我的项目中有一个BreadCrumb,希望它导航到上一页而不刷新页面
我尝试过
render() {
const goBack = (value) => history.goBack(value)
.
.
.
return (
<div>
<Link color="inherit" href="#" onClick={goBack(3)}>
<Typography>
<Trans>DASHBOARD</Trans>
</Typography>
</Link>
<Link color="inherit" href="#" onClick={goBack(2)}>
<Typography>
<Trans>SHELF READING</Trans>
</Typography>
</Link>
<Link href="#" onClick={goBack(1)} color="inherit">
<Typography>
<Trans>SCANNING</Trans>
</Typography>
</Link>
<Typography>ITEM DETAILS</Typography>
</div>
但这不起作用。如何浏览面包屑而不重新加载页面