From a1acfccba5b1d567544c96182d4e266d2c6f74fa Mon Sep 17 00:00:00 2001 From: hailin Date: Tue, 22 Apr 2025 20:27:21 +0800 Subject: [PATCH] . --- app/[locale]/login/password/page.tsx | 2 +- app/[locale]/setup/page.tsx | 1 + components/ui/language-switcher.tsx | 1 + components/utility/profile-settings.tsx | 1 + 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/app/[locale]/login/password/page.tsx b/app/[locale]/login/password/page.tsx index 8a555ca..ddee596 100644 --- a/app/[locale]/login/password/page.tsx +++ b/app/[locale]/login/password/page.tsx @@ -38,7 +38,7 @@ export default function ChangePasswordPage() { - + console.log("...........[login page.tsx]") router.push(`${homePath}/login`) // router.push(`${locale}/login`) } else { diff --git a/app/[locale]/setup/page.tsx b/app/[locale]/setup/page.tsx index 02affb8..f9de638 100644 --- a/app/[locale]/setup/page.tsx +++ b/app/[locale]/setup/page.tsx @@ -96,6 +96,7 @@ export default function SetupPage() { if (!session) { // 强制跳转到带有 locale 的 login 页面 + console.log("...........[setup/page.tsx]") return router.push(`${homePath}/login`) // return router.push(`/${locale}/login`) } else { diff --git a/components/ui/language-switcher.tsx b/components/ui/language-switcher.tsx index ca66ea4..6d336f5 100644 --- a/components/ui/language-switcher.tsx +++ b/components/ui/language-switcher.tsx @@ -92,6 +92,7 @@ export function LanguageSwitcher() { startTransition(() => { if (pathname !== newPath) { + console.log("...........[language-switcher]...]") router.push(newPath) } else { router.refresh() diff --git a/components/utility/profile-settings.tsx b/components/utility/profile-settings.tsx index 61b265f..480c3d8 100644 --- a/components/utility/profile-settings.tsx +++ b/components/utility/profile-settings.tsx @@ -198,6 +198,7 @@ export const ProfileSettings: FC = ({}) => { locale = segment } const homePath = locale === defaultLocale ? "/" : `/${locale}` + console.log("...........[profile-setting.tsx]") router.push(homePath) router.refresh() return