mirror of https://github.com/langgenius/dify.git
rm useless router.replace (#27386)
This commit is contained in:
parent
cdf8f24085
commit
ec871819e4
|
|
@ -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