diff --git a/src/pages/User/Login/index.tsx b/src/pages/User/Login/index.tsx index 0236b22..8ad3e92 100644 --- a/src/pages/User/Login/index.tsx +++ b/src/pages/User/Login/index.tsx @@ -97,9 +97,7 @@ useEffect(()=>{ const urlParams = new URL(window.location.href).searchParams; history.push(urlParams.get('redirect') || '/'); sessionStorage.setItem('avatar_refreshed', '1'); - setTimeout(() => { - window.location.reload(); - }, 1000); + window.location.href = urlParams.get('redirect') || '/'; return; } else { message.error(res.message);