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 {
|
} else {
|
||||||
// 更新 session
|
// 更新 session
|
||||||
await update();
|
await update();
|
||||||
// 登录成功后重定向到控制台
|
// 重定向回OAuth授权页面
|
||||||
router.push("/dashboard");
|
router.push(`/oauth/authorize${window.location.search}`);
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
setError(error);
|
setError(error);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user