This commit is contained in:
Liang Ding 2023-02-17 22:41:41 +08:00
parent e1375fd4f5
commit aa47da6ad0
No known key found for this signature in database
GPG Key ID: 136F30F901A2231D

View File

@ -606,9 +606,8 @@ export const openHistory = () => {
renderDoc(firstPanelElement, type === "docprevious" ? currentPage - 1 : currentPage + 1); renderDoc(firstPanelElement, type === "docprevious" ? currentPage - 1 : currentPage + 1);
break; break;
} else if (type === "rebuildIndex") { } else if (type === "rebuildIndex") {
fetchPost("/api/history/reindexHistory", {}, () => { fetchPost("/api/history/reindexHistory", {});
renderDoc(firstPanelElement, 1); dialog.destroy();
});
break; break;
} else if (type === "compare") { } else if (type === "compare") {
showDiff(JSON.parse(target.getAttribute("data-ids") || "[]")); showDiff(JSON.parse(target.getAttribute("data-ids") || "[]"));