Optimize code

This commit is contained in:
2024-01-24 14:35:41 +08:00
parent cade87febe
commit 7ad480e23a
2 changed files with 2 additions and 1 deletions

View File

@@ -22,6 +22,7 @@ const AuthRoute = () => {
if (!isLogin) {
return (
<Navigate
replace
to={getRedirectUrl('/login', `${lastMatch.pathname}${location.search}`)}
/>
)