From f9e3af2291de8eee240722f83fd45f69bff53a2e Mon Sep 17 00:00:00 2001 From: imbytecat Date: Sat, 17 Jan 2026 03:23:40 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E7=A7=BB=E9=99=A4=E6=9C=AA?= =?UTF-8?q?=E4=BD=BF=E7=94=A8=E6=B3=A8=E9=87=8A=E5=B9=B6=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=E7=BB=93=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移除未使用的服务器函数注释并优化代码结构 --- src/routes/todo.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/src/routes/todo.tsx b/src/routes/todo.tsx index ff24520..c9b06c3 100644 --- a/src/routes/todo.tsx +++ b/src/routes/todo.tsx @@ -21,7 +21,6 @@ const deleteTodoSchema = z.object({ id: z.uuid(), }) -// Server Functions - CRUD 操作 const getTodos = createServerFn({ method: 'GET' }).handler(async () => { const todos = await db.query.todoTable.findMany({ orderBy: (todos, { desc }) => [desc(todos.createdAt)],