diff --git a/src/components/auth/user-authorize.tsx b/src/components/auth/user-authorize.tsx index 6d70a1d..e2647cd 100644 --- a/src/components/auth/user-authorize.tsx +++ b/src/components/auth/user-authorize.tsx @@ -34,8 +34,8 @@ export function UserAuthorize({ } else { // 更新 session await update(); - // 登录成功后重定向到控制台 - router.push("/dashboard"); + // 重定向回OAuth授权页面 + router.push(`/oauth/authorize${window.location.search}`); } } catch (error) { setError(error);