mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 14:40:12 +01:00
Merge b2b5edb05e into db4fb41024
This commit is contained in:
commit
64b400e02e
1 changed files with 4 additions and 3 deletions
|
|
@ -360,14 +360,15 @@ export class Title {
|
|||
this.element.classList.remove("fn__none");
|
||||
}
|
||||
}
|
||||
if (this.element.getAttribute("data-render") === "true" && this.element.dataset.nodeId === protyle.block.rootID) {
|
||||
const rootID = response.data.rootID;
|
||||
if (this.element.getAttribute("data-render") === "true" && this.element.dataset.nodeId === rootID) {
|
||||
return false;
|
||||
}
|
||||
this.element.setAttribute("data-node-id", protyle.block.rootID);
|
||||
this.element.setAttribute("data-node-id", rootID);
|
||||
if (response.data.ial[Constants.CUSTOM_RIFF_DECKS]) {
|
||||
this.element.setAttribute(Constants.CUSTOM_RIFF_DECKS, response.data.ial[Constants.CUSTOM_RIFF_DECKS]);
|
||||
}
|
||||
protyle.background?.render(response.data.ial, protyle.block.rootID);
|
||||
protyle.background?.render(response.data.ial, rootID);
|
||||
protyle.wysiwyg.renderCustom(response.data.ial);
|
||||
this.element.setAttribute("data-render", "true");
|
||||
this.setTitle(response.data.ial.title);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue