Skip to content

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

:art: https://github.com/siyuan-note/siyuan/issues/11307

Vanessa10d72e23efa5
diff --git a/app/src/protyle/breadcrumb/action.ts b/app/src/protyle/breadcrumb/action.ts
index 5925d7cb79..3962a98e7c 100644
--- a/app/src/protyle/breadcrumb/action.ts
+++ b/app/src/protyle/breadcrumb/action.ts
@@ -1,5 +1,5 @@
/// #if !MOBILE
-import {getAllModels, getAllWnds} from "../../layout/getAll";
+import {getAllEditor, getAllModels, getAllWnds} from "../../layout/getAll";
/// #endif
import {addLoading} from "../ui/initUI";
import {fetchPost} from "../../util/fetch";
@@ -24,9 +24,9 @@ export const net2LocalAssets = (protyle: IProtyle, type: "Assets" | "Img") => {
/// #if MOBILE
reloadProtyle(protyle, false);
/// #else
- getAllModels().editor.forEach(item => {
- if (item.editor.protyle.block.rootID === protyle.block.rootID) {
- reloadProtyle(item.editor.protyle, item.editor.protyle.element.isSameNode(protyle.element));
+ getAllEditor().forEach(item => {
+ if (item.protyle.block.rootID === protyle.block.rootID) {
+ reloadProtyle(item.protyle, item.protyle.element.isSameNode(protyle.element));
}
});
/// #endif