From c71dba34015799d8ddb97ddf1aa699687a5c7852 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Wed, 31 Aug 2022 10:50:34 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/5735 copy --- app/src/util/history.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/util/history.ts b/app/src/util/history.ts index 561680ba3..0f9983c41 100644 --- a/app/src/util/history.ts +++ b/app/src/util/history.ts @@ -78,7 +78,7 @@ const renderDoc = (element: HTMLElement, currentPage: number) => { fetchPost("/api/history/getDocHistoryContent", { historyPath: item.items[0].path }, (contentResponse) => { - onGet(contentResponse, historyEditor.protyle, [Constants.CB_GET_HISTORY]); + onGet(contentResponse, historyEditor.protyle, [Constants.CB_GET_HISTORY, Constants.CB_GET_HTML]); }); } } @@ -404,7 +404,7 @@ export const openHistory = () => { fetchPost("/api/history/getDocHistoryContent", { historyPath: dataPath }, (response) => { - onGet(response, historyEditor.protyle, [Constants.CB_GET_HISTORY]); + onGet(response, historyEditor.protyle, [Constants.CB_GET_HISTORY, Constants.CB_GET_HTML]); }); } let currentItem = hasClosestByClassName(target, "b3-list") as HTMLElement;