Selaa lähdekoodia

:art: https://github.com/siyuan-note/siyuan/issues/5735 copy

Vanessa 2 vuotta sitten
vanhempi
commit
c71dba3401
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      app/src/util/history.ts

+ 2 - 2
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;