Vanessa 2025-11-02 22:30:33 +08:00
parent 51fa248e51
commit b1a00c6ebd

View file

@ -99,7 +99,7 @@ export const initFramework = (app: App, isStart: boolean) => {
window.siyuan.mobile.docks.outline = new MobileOutline({
app,
blockId: window.siyuan.mobile.editor?.protyle.block.rootID,
isPreview: window.siyuan.mobile.editor?.protyle.preview.element.classList.contains("fn__none")
isPreview: window.siyuan.mobile.editor ? !window.siyuan.mobile.editor.protyle.preview.element.classList.contains("fn__none") : false
});
} else {
fetchPost("/api/outline/getDocOutline", {