diff --git a/src/components/layout/header/config.ts b/src/components/layout/header/config.ts index 1b0317ad50..928a6a9e46 100644 --- a/src/components/layout/header/config.ts +++ b/src/components/layout/header/config.ts @@ -8,7 +8,6 @@ import { FaSolidDotCircle, FaSolidFeatherAlt, FaSolidHistory, - FaSolidSubway, FaSolidUserFriends, IcTwotoneSignpost, IonBook, @@ -95,9 +94,9 @@ export const headerMenuConfig: IHeaderMenu[] = [ }, ], }, - { - title: '开往', - icon: h(FaSolidSubway), - path: 'https://travellings.link', - }, + // { + // title: '开往', + // icon: h(FaSolidSubway), + // path: 'https://travellings.link', + // }, ] diff --git a/src/components/layout/header/internal/HeaderContent.tsx b/src/components/layout/header/internal/HeaderContent.tsx index 480093c6cb..195e24d2be 100644 --- a/src/components/layout/header/internal/HeaderContent.tsx +++ b/src/components/layout/header/internal/HeaderContent.tsx @@ -190,9 +190,11 @@ function AnimatedItem({ className?: string isActive?: boolean }) { + const isExternal = href.startsWith('http') + const As = isExternal ? 'a' : Link return (
- {children} {isActive && ( @@ -211,7 +214,7 @@ function AnimatedItem({ layoutId="active-nav-item" /> )} - +
) }