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)
|
const redirectUrl = resolvePostLoginRedirect(searchParams)
|
||||||
if (redirectUrl)
|
if (redirectUrl) {
|
||||||
location.replace(redirectUrl)
|
location.replace(redirectUrl)
|
||||||
else
|
return
|
||||||
router.replace(pathname)
|
}
|
||||||
|
|
||||||
setInit(true)
|
setInit(true)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue