From a7230c0ecebc6aa6c08696c0e05066da8ee4f868 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Wed, 31 Aug 2022 10:57:19 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/5735 hl --- app/src/util/history.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/src/util/history.ts b/app/src/util/history.ts index 0f9983c41..ebd00d436 100644 --- a/app/src/util/history.ts +++ b/app/src/util/history.ts @@ -76,7 +76,8 @@ const renderDoc = (element: HTMLElement, currentPage: number) => { element.lastElementChild.lastElementChild.previousElementSibling.innerHTML = renderAssetsPreview(item.items[0].path); } else { fetchPost("/api/history/getDocHistoryContent", { - historyPath: item.items[0].path + historyPath: item.items[0].path, + k: inputElement.value }, (contentResponse) => { onGet(contentResponse, historyEditor.protyle, [Constants.CB_GET_HISTORY, Constants.CB_GET_HTML]); }); @@ -402,7 +403,8 @@ export const openHistory = () => { firstPanelElement.lastElementChild.lastElementChild.previousElementSibling.innerHTML = renderAssetsPreview(dataPath); } else if (type === "doc") { fetchPost("/api/history/getDocHistoryContent", { - historyPath: dataPath + historyPath: dataPath, + k: (firstPanelElement.querySelector(".b3-text-field") as HTMLInputElement).value }, (response) => { onGet(response, historyEditor.protyle, [Constants.CB_GET_HISTORY, Constants.CB_GET_HTML]); });