mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 09:30:14 +01:00
🚨
This commit is contained in:
parent
3aa98db23d
commit
6c75197dbc
9 changed files with 17 additions and 17 deletions
|
|
@ -1291,7 +1291,7 @@ export const openMenuPanel = (options: {
|
|||
} else if (type === "av-view-switch") {
|
||||
if (!target.parentElement.classList.contains("b3-menu__item--current")) {
|
||||
avPanelElement.querySelector(".b3-menu__item--current")?.classList.remove("b3-menu__item--current");
|
||||
target.parentElement.classList.add("b3-menu__item--current")
|
||||
target.parentElement.classList.add("b3-menu__item--current");
|
||||
options.blockElement.removeAttribute("data-render");
|
||||
avRender(options.blockElement, options.protyle, undefined, target.parentElement.dataset.id);
|
||||
}
|
||||
|
|
@ -1307,7 +1307,7 @@ export const openMenuPanel = (options: {
|
|||
});
|
||||
} else {
|
||||
avPanelElement.querySelector(".b3-menu__item--current")?.classList.remove("b3-menu__item--current");
|
||||
target.parentElement.classList.add("b3-menu__item--current")
|
||||
target.parentElement.classList.add("b3-menu__item--current");
|
||||
options.blockElement.removeAttribute("data-render");
|
||||
avRender(options.blockElement, options.protyle, () => {
|
||||
openViewMenu({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue