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

Vanessad76f16920eb0
diff --git a/app/src/config/about.ts b/app/src/config/about.ts
index 1a36b12920..4b7d5af246 100644
--- a/app/src/config/about.ts
+++ b/app/src/config/about.ts
@@ -279,11 +279,11 @@ export const about = {
});
btnsElement[1].addEventListener("click", () => {
confirmDialog("🔑 " + window.siyuan.languages.genKeyByPW, window.siyuan.languages.initRepoKeyTip, () => {
+ initDialog.destroy();
fetchPost("/api/repo/InitRepoKeyFromPassphrase", {pass: inputElement.value}, (response) => {
window.siyuan.config.repo.key = response.data.key;
importKeyElement.parentElement.classList.add("fn__none");
importKeyElement.parentElement.nextElementSibling.classList.remove("fn__none");
- initDialog.destroy();
});
});
});