Refactor(Sign): Optimize navigate to login

This commit is contained in:
2024-04-30 15:16:55 +08:00
parent 870204db0a
commit c481fcac2c
2 changed files with 2 additions and 2 deletions

View File

@@ -275,7 +275,7 @@ const Forget = () => {
<a
onClick={() =>
navigateToLogin(navigate, undefined, undefined, {
navigateToLogin(navigate, location.search, undefined, {
replace: true
})
}

View File

@@ -32,7 +32,7 @@ const Verify = () => {
}
if (!getLoginStatus()) {
navigateToLogin(navigate, undefined, `${location.pathname}${location.search}`, {
navigateToLogin(navigate, location.search, undefined, {
replace: true
})
return