From df71ba6fb020336044d1a70bd5a5be267b287ede Mon Sep 17 00:00:00 2001 From: Vanessa Date: Tue, 30 Aug 2022 00:09:14 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/4901 --- app/src/util/history.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app/src/util/history.ts b/app/src/util/history.ts index 79e8dbd49..4073ae50d 100644 --- a/app/src/util/history.ts +++ b/app/src/util/history.ts @@ -2,8 +2,6 @@ import {Dialog} from "../dialog"; import {confirmDialog} from "../dialog/confirmDialog"; import {fetchPost} from "./fetch"; import {Constants} from "../constants"; -import {MenuItem} from "../menus/Menu"; -import {unicode2Emoji} from "../emoji"; import {escapeHtml} from "./escape"; import {isMobile} from "./functions"; import {hasClosestByClassName} from "../protyle/util/hasClosest"; @@ -28,7 +26,7 @@ const renderDoc = (element: HTMLElement, currentPage: number) => { op: (selectElements[0] as HTMLSelectElement).value, type: 0 }, (response) => { - if (currentPage < response.data.pageCount) { + if (currentPage < response.data.totalCount) { nextElement.removeAttribute("disabled"); } else { nextElement.setAttribute("disabled", "disabled"); @@ -411,7 +409,7 @@ export const openHistory = () => { fetchPost("/api/history/getDocHistoryContent", { historyPath: dataPath }, (response) => { - firstPanelElement.lastElementChild.innerHTML = response.data.content; + firstPanelElement.lastElementChild.lastElementChild.innerHTML = response.data.content; }); } let currentItem = hasClosestByClassName(target, "b3-list") as HTMLElement;