fix: fix nav status check in second level page

This commit is contained in:
moonrailgun 2023-10-07 17:29:01 +08:00
parent fcb28d3456
commit 0e71e073fc

View File

@ -8,7 +8,7 @@ export const NavItem: React.FC<{
}> = React.memo((props) => {
const location = useLocation();
const isCurrent = location.pathname === props.to;
const isCurrent = location.pathname.startsWith(props.to);
return (
<Link to={props.to}>