0.3.1 UI修复

This commit is contained in:
liaibo
2026-01-18 19:01:31 +08:00
parent 90a38b48cf
commit 8a5b915002
86 changed files with 1160 additions and 2867 deletions
+4 -4
View File
@@ -122,8 +122,8 @@ export const run = internalAction({
if (!documentId) throw new Error("缺少 documentId");
const [meta, contentRes] = await Promise.all([
ctx.runQuery(api.documents.getMeta, { userId: job.user_id, id: documentId }),
ctx.runQuery(api.documents.getContent, { userId: job.user_id, id: documentId }),
ctx.runQuery(internal.documents.getMetaForIngest, { userId: job.user_id, id: documentId }),
ctx.runQuery(internal.documents.getContentForIngest, { userId: job.user_id, id: documentId }),
]);
if (!meta) throw new Error("页面不存在或无权限");
@@ -147,8 +147,8 @@ export const run = internalAction({
if (!mindmapId) throw new Error("缺少 mindmapId");
const [docMeta, mindmapRes] = await Promise.all([
ctx.runQuery(api.documents.getMeta, { userId: job.user_id, id: docId }),
ctx.runQuery(api.mindmaps.get, { userId: job.user_id, docId, mindmapId }),
ctx.runQuery(internal.documents.getMetaForIngest, { userId: job.user_id, id: docId }),
ctx.runQuery(internal.mindmaps.getForIngest, { userId: job.user_id, docId, mindmapId }),
]);
if (!docMeta) throw new Error("页面不存在或无权限");