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

Vanessa086e2ffbd01a
diff --git a/app/src/mobile/util/menu.ts b/app/src/mobile/util/menu.ts
index 077ca2fa7a..6ea4bf34dc 100644
--- a/app/src/mobile/util/menu.ts
+++ b/app/src/mobile/util/menu.ts
@@ -315,10 +315,12 @@ ${accountHTML}
});
});
modelMainElement.querySelector("#initKey").addEventListener("click", () => {
- fetchPost("/api/repo/initRepoKey", {}, (response) => {
- window.siyuan.config.repo.key = response.data.key;
- importKeyElement.parentElement.classList.add("fn__none");
- importKeyElement.parentElement.nextElementSibling.classList.remove("fn__none");
+ confirmDialog(window.siyuan.languages.genKey, "TODO", () => {
+ fetchPost("/api/repo/initRepoKey", {}, (response) => {
+ window.siyuan.config.repo.key = response.data.key;
+ importKeyElement.parentElement.classList.add("fn__none");
+ importKeyElement.parentElement.nextElementSibling.classList.remove("fn__none");
+ });
});
});
modelMainElement.querySelector("#copyKey").addEventListener("click", () => {