Vanessa 2023-11-24 00:19:20 +08:00
parent 27b370133d
commit 01fc87c152
3 changed files with 19 additions and 4 deletions

View file

@ -51,9 +51,11 @@ export const avRender = (element: Element, protyle: IProtyle, cb?: () => void) =
selectCellId = (hasClosestByClassName(selectCellElement, "av__row") as HTMLElement).dataset.id + Constants.ZWSP + selectCellElement.getAttribute("data-col-id");
}
const created = protyle.options.history?.created;
fetchPost(created ? "/api/av/renderHistoryAttributeView" : "/api/av/renderAttributeView", {
const snapshot = protyle.options.history?.snapshot;
fetchPost(created ? "/api/av/renderHistoryAttributeView" : (snapshot ? "/api/av/renderSnapshotAttributeView" : "/api/av/renderAttributeView"), {
id: e.getAttribute("data-av-id"),
created
created,
snapshot
}, (response) => {
const data = response.data.view as IAVTable;
// header