Refactor(Sign): Optimize navigate to login

This commit is contained in:
2024-05-01 14:39:34 +08:00
parent d326c8b8e5
commit 7f034db314
2 changed files with 2 additions and 2 deletions

View File

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

View File

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