mirror of
https://github.com/langgenius/dify.git
synced 2026-03-30 17:20:16 +08:00
rm useless router.replace (#27386)
This commit is contained in:
parent
417ebd160b
commit
a2fe4a28c3
@ -56,10 +56,10 @@ const SwrInitializer = ({
|
||||
}
|
||||
|
||||
const redirectUrl = resolvePostLoginRedirect(searchParams)
|
||||
if (redirectUrl)
|
||||
if (redirectUrl) {
|
||||
location.replace(redirectUrl)
|
||||
else
|
||||
router.replace(pathname)
|
||||
return
|
||||
}
|
||||
|
||||
setInit(true)
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user