From 5e8751de7da0f82bd7b9ab80959b7a5ce22beb61 Mon Sep 17 00:00:00 2001 From: yorn <1057707203@qq.com> Date: Fri, 6 Jun 2025 16:34:09 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B3=A8=E9=87=8Aconsole?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/root.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/root.tsx b/app/root.tsx index 9ad8aee..77d47d8 100644 --- a/app/root.tsx +++ b/app/root.tsx @@ -133,7 +133,7 @@ export async function loader({ request }: LoaderFunctionArgs) { // 获取用户会话 const { isAuthenticated, userRole } = await getUserSession(request); - console.log("是否公开路径:", isPublicPath, "是否已认证:", isAuthenticated); + // console.log("是否公开路径:", isPublicPath, "是否已认证:", isAuthenticated); // 如果访问需要认证的路径但未登录,重定向到登录页 if (!isPublicPath && !isAuthenticated) {