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

Vanessab4d6e79b637f
diff --git a/app/src/config/about.ts b/app/src/config/about.ts
index 4fe0f821d4..19816cf0f2 100644
--- a/app/src/config/about.ts
+++ b/app/src/config/about.ts
@@ -244,10 +244,12 @@ export const about = {
});
});
about.element.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");
+ });
});
});
about.element.querySelector("#copyKey").addEventListener("click", () => {