mirror of
https://github.com/langgenius/dify.git
synced 2025-12-19 17:27:16 -05:00
rm useless router.replace (#27386)
This commit is contained in:
@@ -56,10 +56,10 @@ const SwrInitializer = ({
|
||||
}
|
||||
|
||||
const redirectUrl = resolvePostLoginRedirect(searchParams)
|
||||
if (redirectUrl)
|
||||
if (redirectUrl) {
|
||||
location.replace(redirectUrl)
|
||||
else
|
||||
router.replace(pathname)
|
||||
return
|
||||
}
|
||||
|
||||
setInit(true)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user