This commit is contained in:
Vanessa 2023-03-21 11:25:38 +08:00
parent 3c46f87fc5
commit 0c24f6d39d
2 changed files with 2 additions and 8 deletions

View File

@ -451,6 +451,7 @@ export const zoomOut = (protyle: IProtyle, id: string, focusId?: string, isPushB
pushBack();
}
}
/// #if !MOBILE
if (protyle.breadcrumb) {
const exitFocusElement = protyle.breadcrumb.element.parentElement.querySelector('[data-type="exit-focus"]');
if (id === protyle.block.rootID) {
@ -461,6 +462,7 @@ export const zoomOut = (protyle: IProtyle, id: string, focusId?: string, isPushB
exitFocusElement.nextElementSibling.classList.remove("fn__none");
}
}
/// #endif
fetchPost("/api/filetree/getDoc", {
id,
size: id === protyle.block.rootID ? window.siyuan.config.editor.dynamicLoadBlocks : Constants.SIZE_GET_MAX,

View File

@ -53,14 +53,6 @@ export const openMobileFileById = (id: string, action = [Constants.CB_GET_HL]) =
}, getResponse => {
onGet(getResponse, window.siyuan.mobile.editor.protyle, action);
window.siyuan.mobile.editor.protyle.breadcrumb?.render(window.siyuan.mobile.editor.protyle);
const exitFocusElement = window.siyuan.mobile.editor.protyle.breadcrumb.element.parentElement.querySelector('[data-type="exit-focus"]');
if (action.includes(Constants.CB_GET_ALL)) {
exitFocusElement.classList.remove("fn__none");
exitFocusElement.nextElementSibling.classList.remove("fn__none");
} else {
exitFocusElement.classList.add("fn__none");
exitFocusElement.nextElementSibling.classList.add("fn__none");
}
});
window.siyuan.mobile.editor.protyle.undo.clear();
} else {