Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
Vanessa 2023-02-18 09:52:43 +08:00
commit e80c9aa66c
12 changed files with 74 additions and 72 deletions

View file

@ -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") || "[]"));