This commit is contained in:
hailin 2025-04-21 01:39:01 +08:00
parent 53371f3523
commit e29dc948c7
1 changed files with 3 additions and 2 deletions

View File

@ -146,9 +146,10 @@ export const ProfileSettings: FC<ProfileSettingsProps> = ({}) => {
locale = segment
}
const loginPath = locale === defaultLocale ? "/login" : `/${locale}/login`
// const loginPath = locale === defaultLocale ? "/login" : `/${locale}/login`
const homePath = locale === defaultLocale ? "/" : `/${locale}`
router.push(loginPath)
router.push(homePath)
router.refresh()
return
}