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