From e69fd647f2c4786582a64bd0054dd4e4eed4a93e Mon Sep 17 00:00:00 2001 From: yorn <1057707203@qq.com> Date: Fri, 6 Jun 2025 19:30:36 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"=E6=B3=A8=E9=87=8Aconsole"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 5e8751de7da0f82bd7b9ab80959b7a5ce22beb61. --- app/root.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/root.tsx b/app/root.tsx index 77d47d8..9ad8aee 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) {