An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: 激活码不可用时清空输入
Liang Dingb077aaef9fe0
diff --git a/app/src/config/account.ts b/app/src/config/account.tsindex 54484bbe9e..19fda72988 100644--- a/app/src/config/account.ts+++ b/app/src/config/account.ts@@ -219,7 +219,11 @@ ${window.siyuan.languages.account8}`;});const activationCodeElement = account.element.querySelector("#activationCode");activationCodeElement.addEventListener("click", () => {- fetchPost("/api/account/checkActivationcode", {data: (activationCodeElement.previousElementSibling as HTMLInputElement).value}, (response) => {+ const activationCodeInput = (activationCodeElement.previousElementSibling as HTMLInputElement)+ fetchPost("/api/account/checkActivationcode", {data: activationCodeInput.value}, (response) => {+ if (0 !== response.code) {+ activationCodeInput.value = "";+ }confirmDialog(window.siyuan.languages.activationCode, response.msg, () => {if (response.code === 0) {fetchPost("/api/account/useActivationcode", {data: (activationCodeElement.previousElementSibling as HTMLInputElement).value}, () => {