mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-18 23:50:13 +01:00
This commit is contained in:
parent
d9eebd582c
commit
ab6a521f78
1 changed files with 1 additions and 0 deletions
|
|
@ -52,6 +52,7 @@ export const avRender = (element: Element, protyle: IProtyle, cb?: () => void, v
|
||||||
let newViewID = "";
|
let newViewID = "";
|
||||||
if (typeof viewID === "string") {
|
if (typeof viewID === "string") {
|
||||||
newViewID = viewID;
|
newViewID = viewID;
|
||||||
|
fetchPost("/api/av/setDatabaseBlockView", {id: e.dataset.nodeId, viewID});
|
||||||
} else if (typeof viewID === "undefined") {
|
} else if (typeof viewID === "undefined") {
|
||||||
newViewID = e.querySelector(".av__header .item--focus")?.getAttribute("data-id");
|
newViewID = e.querySelector(".av__header .item--focus")?.getAttribute("data-id");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue