Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:bug: 面包屑点击无反应,无法聚焦 https://github.com/siyuan-note/siyuan/issues/7138

Liang Ding1da37af58625
diff --git a/app/src/menus/protyle.ts b/app/src/menus/protyle.ts
index 7563bf7f09..c3edded504 100644
--- a/app/src/menus/protyle.ts
+++ b/app/src/menus/protyle.ts
@@ -1,12 +1,6 @@
import {hasClosestBlock, hasClosestByMatchTag} from "../protyle/util/hasClosest";
import {MenuItem} from "./Menu";
-import {
- focusBlock,
- focusByRange,
- focusByWbr,
- getEditorRange,
- selectAll,
-} from "../protyle/util/selection";
+import {focusBlock, focusByRange, focusByWbr, getEditorRange, selectAll,} from "../protyle/util/selection";
import {
deleteColumn,
deleteRow,
@@ -456,7 +450,7 @@ export const zoomOut = (protyle: IProtyle, id: string, focusId?: string, isPushB
return;
}
}
- if (window.siyuan.mobile.editor) {
+ if (window.siyuan.mobile?.editor) {
window.siyuan.storage[Constants.LOCAL_DOCINFO] = {
id,
action: id === protyle.block.rootID ? [Constants.CB_GET_HL, Constants.CB_GET_CONTEXT] : [Constants.CB_GET_ALL]