mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 01:20:12 +01:00
This commit is contained in:
parent
5139e51165
commit
c71dba3401
1 changed files with 2 additions and 2 deletions
|
|
@ -78,7 +78,7 @@ const renderDoc = (element: HTMLElement, currentPage: number) => {
|
||||||
fetchPost("/api/history/getDocHistoryContent", {
|
fetchPost("/api/history/getDocHistoryContent", {
|
||||||
historyPath: item.items[0].path
|
historyPath: item.items[0].path
|
||||||
}, (contentResponse) => {
|
}, (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", {
|
fetchPost("/api/history/getDocHistoryContent", {
|
||||||
historyPath: dataPath
|
historyPath: dataPath
|
||||||
}, (response) => {
|
}, (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;
|
let currentItem = hasClosestByClassName(target, "b3-list") as HTMLElement;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue