更新 frontend/src/components/Layout.tsx
This commit is contained in:
parent
91db9246d3
commit
43dca953ee
@ -26,7 +26,7 @@ export default function Layout({ children }: LayoutProps) {
|
||||
|
||||
<nav className="flex space-x-1">
|
||||
<Link
|
||||
to="/"
|
||||
to="./"
|
||||
className={`px-4 py-2 rounded-md text-sm font-medium transition-colors ${
|
||||
isActive('/') && location.pathname === '/'
|
||||
? 'bg-primary-100 text-primary-700'
|
||||
@ -36,7 +36,7 @@ export default function Layout({ children }: LayoutProps) {
|
||||
首页
|
||||
</Link>
|
||||
<Link
|
||||
to="/courses"
|
||||
to="./courses"
|
||||
className={`px-4 py-2 rounded-md text-sm font-medium transition-colors ${
|
||||
isActive('/courses')
|
||||
? 'bg-primary-100 text-primary-700'
|
||||
@ -46,7 +46,7 @@ export default function Layout({ children }: LayoutProps) {
|
||||
课程
|
||||
</Link>
|
||||
<Link
|
||||
to="/paths"
|
||||
to="./paths"
|
||||
className={`px-4 py-2 rounded-md text-sm font-medium transition-colors ${
|
||||
isActive('/paths')
|
||||
? 'bg-primary-100 text-primary-700'
|
||||
|
||||
Loading…
Reference in New Issue
Block a user