From 4243a523275251497b97f9da934be4839c863181 Mon Sep 17 00:00:00 2001 From: eric Date: Sun, 8 Mar 2026 12:38:57 -0500 Subject: [PATCH] =?UTF-8?q?'=E6=96=B0=E5=A2=9E=E6=8B=9B=E8=81=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/[locale]/about/AboutContent.tsx | 9 +++++++++ app/components/Footer.tsx | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/app/[locale]/about/AboutContent.tsx b/app/[locale]/about/AboutContent.tsx index 3812a76..45378f7 100644 --- a/app/[locale]/about/AboutContent.tsx +++ b/app/[locale]/about/AboutContent.tsx @@ -1,11 +1,20 @@ "use client"; +import { useEffect } from "react"; import { useTranslation } from "@/i18n/navigation"; import { getThemeConfig } from "@/config"; import SocialPlatformIcon from "../../components/SocialPlatformIcon"; export default function AboutContent() { const { t } = useTranslation("about"); + + useEffect(() => { + window.history.scrollRestoration = "manual"; + window.scrollTo(0, 0); + return () => { + window.history.scrollRestoration = "auto"; + }; + }, []); const config = getThemeConfig(); const linktreeUrl = config.linktreeUrl; const socialLinks = config.socialLinks ?? []; diff --git a/app/components/Footer.tsx b/app/components/Footer.tsx index d753919..e75fb42 100644 --- a/app/components/Footer.tsx +++ b/app/components/Footer.tsx @@ -33,7 +33,7 @@ const footerSections = [ titleKey: "about" as const, links: [ { labelKey: "aboutUs" as const, href: "/about", internal: true }, - { labelKey: "recruit" as const, href: "/jobs", internal: true, openInNewTab: true }, + { labelKey: "recruit" as const, href: "/jobs", internal: true }, { labelKey: "privacy" as const, href: "/privacy", internal: true, openInNewTab: true }, { labelKey: "contact" as const, href: "#" }, ],