From 2b11972699d6d67cb33b4300788164410211610d Mon Sep 17 00:00:00 2001 From: wood chen Date: Fri, 21 Feb 2025 16:11:17 +0800 Subject: [PATCH] =?UTF-8?q?=E7=99=BB=E5=BD=95=E5=90=8E=E8=B7=B3=E8=BD=AC,?= =?UTF-8?q?=20=E6=B7=BB=E5=8A=A0=E6=9B=B4=E9=95=BF=E7=9A=84=E7=AD=89?= =?UTF-8?q?=E5=BE=85=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/auth/user-authorize.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/auth/user-authorize.tsx b/src/components/auth/user-authorize.tsx index d9ca585..f2b19b4 100644 --- a/src/components/auth/user-authorize.tsx +++ b/src/components/auth/user-authorize.tsx @@ -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);