注释console
This commit is contained in:
+1
-1
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user