fix: Modify OAuth authorization redirect after login

- Update router.push to redirect back to OAuth authorization page
- Preserve original OAuth parameters using window.location.search
- Ensure smooth continuation of OAuth authorization flow after authentication
This commit is contained in:
wood chen 2025-02-21 12:52:26 +08:00
parent b5c3d84ec5
commit f7d32436b5

View File

@ -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);