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: fix https://github.com/siyuan-note/siyuan/issues/8329
Vanessae28a21de795d
diff --git a/app/src/util/fetch.ts b/app/src/util/fetch.tsindex 22f43e0fcc..c5bf85f1f7 100644--- a/app/src/util/fetch.ts+++ b/app/src/util/fetch.ts@@ -35,7 +35,7 @@ export const fetchPost = (url: string, data?: any, cb?: (response: IWebSocketDatcode: response.status,};} else {- if (response.headers.get("content-type").indexOf("application/json") > -1) {+ if (response.headers.get("content-type")?.indexOf("application/json") > -1) {return response.json();} else {return response.text();