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/17560

Vanessae87fb431ccc5
diff --git a/app/src/dialog/processSystem.ts b/app/src/dialog/processSystem.ts
index 1050f6e54f..a671d863b3 100644
--- a/app/src/dialog/processSystem.ts
+++ b/app/src/dialog/processSystem.ts
@@ -50,14 +50,15 @@ export const reloadSync = (
hideMessage();
}
/// #if MOBILE
- if (window.siyuan.mobile.popEditor) {
+ if (window.siyuan.mobile.popEditor && window.siyuan.mobile.popEditor.protyle) {
if (data.removeRootIDs.includes(window.siyuan.mobile.popEditor.protyle.block.rootID)) {
hideElements(["dialog"]);
} else {
reloadProtyle(window.siyuan.mobile.popEditor.protyle, false, updateReadonly);
}
}
- if (window.siyuan.mobile.editor) {
+ if (document.getElementById("empty").classList.contains("fn__none") &&
+ window.siyuan.mobile.editor && window.siyuan.mobile.editor.protyle) {
if (data.removeRootIDs.includes(window.siyuan.mobile.editor.protyle.block.rootID)) {
setEmpty(app);
} else {