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

Vanessa8e56e1f47ff7
diff --git a/app/src/config/about.ts b/app/src/config/about.ts
index 4b7d5af246..c76ca0e7f9 100644
--- a/app/src/config/about.ts
+++ b/app/src/config/about.ts
@@ -278,6 +278,10 @@ export const about = {
initDialog.destroy();
});
btnsElement[1].addEventListener("click", () => {
+ if (!inputElement.value) {
+ showMessage(window.siyuan.languages._kernel[142]);
+ return;
+ }
confirmDialog("🔑 " + window.siyuan.languages.genKeyByPW, window.siyuan.languages.initRepoKeyTip, () => {
initDialog.destroy();
fetchPost("/api/repo/InitRepoKeyFromPassphrase", {pass: inputElement.value}, (response) => {