rm useless router.replace (#27386)

This commit is contained in:
yalei 2025-10-26 19:26:46 +08:00 committed by twwu
parent cdf8f24085
commit ec871819e4
1 changed files with 3 additions and 3 deletions

View File

@ -56,10 +56,10 @@ const SwrInitializer = ({
}
const redirectUrl = resolvePostLoginRedirect(searchParams)
if (redirectUrl)
if (redirectUrl) {
location.replace(redirectUrl)
else
router.replace(pathname)
return
}
setInit(true)
}