From c03d8fc4b22b086291d8ae6b3c729b90cfc8438e Mon Sep 17 00:00:00 2001
From: expdsn <18111002318@163.com>
Date: Tue, 4 Mar 2025 17:46:22 +0800
Subject: [PATCH] save

---
 app/_lib/session.ts     | 2 --
 app/_ui/LinkListBox.tsx | 1 -
 2 files changed, 3 deletions(-)

diff --git a/app/_lib/session.ts b/app/_lib/session.ts
index e81b6b2..6e6b545 100644
--- a/app/_lib/session.ts
+++ b/app/_lib/session.ts
@@ -34,7 +34,6 @@ export async function createSession(userId: string) {
 
     cookieStore.set('session', session, {
         httpOnly: true,
-        secure: true,
         expires: expiresAt,
         sameSite: 'lax',
         path: '/',
@@ -53,7 +52,6 @@ export async function updateSession() {
     const cookieStore = await cookies()
     cookieStore.set('session', session, {
         httpOnly: true,
-        secure: true,
         expires: expires,
         sameSite: 'lax',
         path: '/',
diff --git a/app/_ui/LinkListBox.tsx b/app/_ui/LinkListBox.tsx
index b9e05af..9736fda 100644
--- a/app/_ui/LinkListBox.tsx
+++ b/app/_ui/LinkListBox.tsx
@@ -40,7 +40,6 @@ export default function LinkListBox({ linkTypeList, linkList, showHot, showRecen
         }
     }, [linkTypeList, setSelectSubType])
     useEffect(() => {
-        console.log(currentId);
 
         if (currentId) {
             // 根据 targetId 查找对应的元素