From 3dece6b5dffca7b979217e6848045d2b98be52bb Mon Sep 17 00:00:00 2001 From: wood chen Date: Fri, 21 Feb 2025 15:49:54 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=B7=BB=E5=8A=A0=E7=9F=AD=E6=9A=82?= =?UTF-8?q?=E5=BB=B6=E8=BF=9F=E4=BB=A5=E7=A1=AE=E4=BF=9D=E4=BC=9A=E8=AF=9D?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/auth/user-authorize.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/auth/user-authorize.tsx b/src/components/auth/user-authorize.tsx index 5655d20..d9ca585 100644 --- a/src/components/auth/user-authorize.tsx +++ b/src/components/auth/user-authorize.tsx @@ -44,6 +44,8 @@ export function UserAuthorize({ await signIn({ sso, sig }); // 更新 session await update(); + // 添加短暂延迟确保session更新完成 + await new Promise((resolve) => setTimeout(resolve, 100)); // 强制刷新页面状态 router.refresh(); setIsLoading(false);