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");