Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: 重建历史索引遮罩 https://github.com/siyuan-note/siyuan/issues/7386

Liang Dingaa47da6ad0ff
diff --git a/app/src/history/history.ts b/app/src/history/history.ts
index 197adb944b..5fb6251726 100644
--- a/app/src/history/history.ts
+++ b/app/src/history/history.ts
@@ -606,9 +606,8 @@ export const openHistory = () => {
renderDoc(firstPanelElement, type === "docprevious" ? currentPage - 1 : currentPage + 1);
break;
} else if (type === "rebuildIndex") {
- fetchPost("/api/history/reindexHistory", {}, () => {
- renderDoc(firstPanelElement, 1);
- });
+ fetchPost("/api/history/reindexHistory", {});
+ dialog.destroy();
break;
} else if (type === "compare") {
showDiff(JSON.parse(target.getAttribute("data-ids") || "[]"));