From f34375f13bcd9f05b387d2d36e4216ef549b7fcb Mon Sep 17 00:00:00 2001 From: sijinhui Date: Fri, 22 Mar 2024 15:38:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E5=A2=9E=E5=8A=A0=E9=82=AE?= =?UTF-8?q?=E4=BB=B6=E8=AE=A4=E8=AF=81-debug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/app/(auth)/login/user-login-button.tsx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/app/app/(auth)/login/user-login-button.tsx b/app/app/(auth)/login/user-login-button.tsx index 7aa5853c4..4dbc17e23 100644 --- a/app/app/(auth)/login/user-login-button.tsx +++ b/app/app/(auth)/login/user-login-button.tsx @@ -44,11 +44,9 @@ export default function UserLoginButton() { }); } setLoading(false); - console.log("------1", result); - // if (!result?.error) { - // console.log('------2',result) - // window.location.href = result?.url || "/"; - // } else setError(true); + if (!result?.error) { + window.location.href = result?.url || "/"; + } else setError(true); }; useEffect(() => {