mirror of
https://github.com/woodchen-ink/Q58Connect.git
synced 2025-07-18 14:01:55 +08:00
登录后跳转, 添加更长的等待时间
This commit is contained in:
parent
3dece6b5df
commit
2b11972699
@ -44,8 +44,8 @@ export function UserAuthorize({
|
||||
await signIn({ sso, sig });
|
||||
// 更新 session
|
||||
await update();
|
||||
// 添加短暂延迟确保session更新完成
|
||||
await new Promise((resolve) => setTimeout(resolve, 100));
|
||||
// 添加更长的延迟确保session完全更新
|
||||
await new Promise((resolve) => setTimeout(resolve, 1000));
|
||||
// 强制刷新页面状态
|
||||
router.refresh();
|
||||
setIsLoading(false);
|
||||
|
Loading…
x
Reference in New Issue
Block a user