Skip to content

Commit

Permalink
🎨 重建历史索引遮罩 #7386
Browse files Browse the repository at this point in the history
  • Loading branch information
88250 committed Feb 17, 2023
1 parent e1375fd commit aa47da6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/src/history/history.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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") || "[]"));
Expand Down

0 comments on commit aa47da6

Please sign in to comment.