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

Vanessa6c5da76a3207
diff --git a/app/src/config/about.ts b/app/src/config/about.ts
index 71fecb563c..61ee5bb133 100644
--- a/app/src/config/about.ts
+++ b/app/src/config/about.ts
@@ -202,7 +202,9 @@ export const about = {
tokenElement.select();
});
tokenElement.addEventListener("change", () => {
- fetchPost("/api/system/setAPIToken", {token: tokenElement.value});
+ fetchPost("/api/system/setAPIToken", {token: tokenElement.value}, () => {
+ window.siyuan.config.api.token = tokenElement.value;
+ });
});
about.element.querySelector("#exportLog").addEventListener("click", () => {
fetchPost("/api/system/exportLog", {}, (response) => {