fix: NavLink全部加end属性,修复父路径永远选中问题
CI / 后端测试 (push) Has been cancelled
CI / 前端构建 (push) Has been cancelled

This commit is contained in:
selfrelease
2026-08-31 15:48:29 +08:00
parent 9310ba141d
commit 17533278da
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ export function BottomTab() {
<NavLink
key={item.path}
to={item.path}
end={item.path === '/'}
end
className={({ isActive }) =>
cn(
'flex flex-1 flex-col items-center gap-0.5 py-1 text-xs transition-colors',
+1 -1
View File
@@ -30,7 +30,7 @@ export function Sidebar() {
<NavLink
key={item.path}
to={item.path}
end={item.path === '/'}
end
className={({ isActive }) =>
cn(
'flex items-center gap-3 px-5 py-2 text-sm transition-colors',