Skip to content

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

:art: fix https://github.com/siyuan-note/siyuan/issues/9515

Vanessac7cba8a8312e
diff --git a/app/src/dialog/processSystem.ts b/app/src/dialog/processSystem.ts
index 1681e7ab2a..fc1f115ade 100644
--- a/app/src/dialog/processSystem.ts
+++ b/app/src/dialog/processSystem.ts
@@ -18,7 +18,7 @@ import {getAllModels} from "../layout/getAll";
import {reloadProtyle} from "../protyle/util/reload";
import {Tab} from "../layout/Tab";
import {setEmpty} from "../mobile/util/setEmpty";
-import {hideElements} from "../protyle/ui/hideElements";
+import {hideAllElements, hideElements} from "../protyle/ui/hideElements";
import {App} from "../index";
import {saveScroll} from "../protyle/scroll/saveScroll";
import {isInAndroid, isInIOS} from "../protyle/util/compatibility";
@@ -168,6 +168,7 @@ export const kernelError = () => {
};
export const exitSiYuan = () => {
+ hideAllElements(["util"]);
/// #if MOBILE
saveScroll(window.siyuan.mobile.editor.protyle);
/// #endif
diff --git a/app/src/protyle/util/destroy.ts b/app/src/protyle/util/destroy.ts
index 75af11a53f..23b3358cbe 100644
--- a/app/src/protyle/util/destroy.ts
+++ b/app/src/protyle/util/destroy.ts
@@ -1,7 +1,10 @@
+import {hideElements} from "../ui/hideElements";
+
export const destroy = (protyle: IProtyle) => {
if (!protyle) {
return;
}
+ hideElements(["util"], protyle);
protyle.element.classList.remove("protyle");
protyle.element.removeAttribute("style");
if (protyle.wysiwyg) {