Vanessa 2024-03-04 14:03:19 +08:00
parent d9eebd582c
commit ab6a521f78

View file

@ -52,6 +52,7 @@ export const avRender = (element: Element, protyle: IProtyle, cb?: () => void, v
let newViewID = "";
if (typeof viewID === "string") {
newViewID = viewID;
fetchPost("/api/av/setDatabaseBlockView", {id: e.dataset.nodeId, viewID});
} else if (typeof viewID === "undefined") {
newViewID = e.querySelector(".av__header .item--focus")?.getAttribute("data-id");
}