提交文档列表相关代码

This commit is contained in:
2025-07-21 12:03:38 +08:00
parent e7ffbe875e
commit 8a09c37dd7
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -494,7 +494,7 @@ export async function updateDocument(id: string, document: Partial<DocumentUI> &
// 获取更新后的完整文档数据
const updatedResponse = await getDocument(id, userId);
return updatedResponse;
return updatedResponse;
} catch (error) {
console.error('更新文档信息失败:', error);
return {
+1 -1
View File
@@ -33,7 +33,7 @@ export const meta: MetaFunction = () => {
];
};
// 数据加载器
// 数据加载器
export const loader = async ({ request }: LoaderFunctionArgs) => {
// 获取用户会话信息
const { getUserSession } = await import("~/api/login/auth.server");