Vanessa 2025-05-07 12:23:01 +08:00
parent 8288d484d9
commit 260af4bba0

View file

@ -53,7 +53,7 @@ const focusStack = (backStack: IBackStack) => {
protyle.wysiwyg.renderCustom(response.data.ial);
});
}
const exitFocusElement = protyle.breadcrumb.element.parentElement.querySelector('[data-type="exit-focus"]');
if (backStack.zoomId) {
if (backStack.zoomId !== protyle.block.id) {
fetchPost("/api/block/checkBlockExist", {id: backStack.id}, existResponse => {
@ -71,6 +71,7 @@ const focusStack = (backStack: IBackStack) => {
} else {
protyle.contentElement.scrollTop = backStack.scrollTop;
}
exitFocusElement.classList.remove("fn__none");
return;
}
@ -108,6 +109,7 @@ const focusStack = (backStack: IBackStack) => {
item.eventBus.emit("switch-protyle", {protyle});
item.eventBus.emit("loaded-protyle-static", {protyle});
});
exitFocusElement.classList.add("fn__none");
});
};