This commit is contained in:
Vanessa 2024-12-30 10:17:32 +08:00
parent 3aa98db23d
commit 6c75197dbc
9 changed files with 17 additions and 17 deletions

View file

@ -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({