mirror of
https://github.com/woodchen-ink/Q58Connect.git
synced 2025-07-18 14:01:55 +08:00
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:
parent
b5c3d84ec5
commit
f7d32436b5
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user