From 8a09c37dd76c9df89d71c411cbb10129cae4f921 Mon Sep 17 00:00:00 2001 From: yorn <1057707203@qq.com> Date: Mon, 21 Jul 2025 12:03:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E6=96=87=E6=A1=A3=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E7=9B=B8=E5=85=B3=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/files/documents.ts | 2 +- app/routes/documents._index.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/api/files/documents.ts b/app/api/files/documents.ts index 6ac1455..9c9ec5f 100644 --- a/app/api/files/documents.ts +++ b/app/api/files/documents.ts @@ -494,7 +494,7 @@ export async function updateDocument(id: string, document: Partial & // 获取更新后的完整文档数据 const updatedResponse = await getDocument(id, userId); - return updatedResponse; + return updatedResponse; } catch (error) { console.error('更新文档信息失败:', error); return { diff --git a/app/routes/documents._index.tsx b/app/routes/documents._index.tsx index b303f0c..1e0abc3 100644 --- a/app/routes/documents._index.tsx +++ b/app/routes/documents._index.tsx @@ -33,7 +33,7 @@ export const meta: MetaFunction = () => { ]; }; -// 数据加载器 +// 数据加载器 export const loader = async ({ request }: LoaderFunctionArgs) => { // 获取用户会话信息 const { getUserSession } = await import("~/api/login/auth.server");