Skip to content

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

:bug: Fix mobile settings back navigation https://github.com/siyuan-note/siyuan/issues/14648

Daniel8a4a1264dcdd
diff --git a/app/src/mobile/menu/index.ts b/app/src/mobile/menu/index.ts
index a3c974c402..4d90108248 100644
--- a/app/src/mobile/menu/index.ts
+++ b/app/src/mobile/menu/index.ts
@@ -1,5 +1,5 @@
import {popSearch} from "./search";
-import {closePanel} from "../util/closePanel";
+import {closeModel, closePanel} from "../util/closePanel";
import {mountHelp, newDailyNote, newEncryptedNotebook, newNotebook} from "../../util/mount";
import {exitSiYuan, lockScreen, processSync} from "../../dialog/processSystem";
import {openHistory} from "../../history/history";
@@ -59,7 +59,7 @@ export const openMobileSetting = (app: App, tab?: TSettingTab) => {
}
openModel({
title: window.siyuan.languages.config,
- icon: "iconSettings",
+ icon: "iconLeft",
html: `<div class="b3-menu__groups">
<div class="b3-menu__group">
<div class="b3-menu__group-items">${getSettingTabsMenuHTML()}</div>
@@ -73,6 +73,9 @@ export const openMobileSetting = (app: App, tab?: TSettingTab) => {
}
});
},
+ backCallback() {
+ closeModel();
+ },
});
};