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: https://github.com/siyuan-note/siyuan/issues/2892
Vanessad982fd1ddec5
diff --git a/app/src/protyle/toolbar/util.ts b/app/src/protyle/toolbar/util.tsindex e84530e084..b051e15eec 100644--- a/app/src/protyle/toolbar/util.ts+++ b/app/src/protyle/toolbar/util.ts@@ -1,7 +1,7 @@import {fetchPost} from "../../util/fetch";export const previewTemplate = (pathString: string, element: Element) => {- fetchPost("/api/file/getFile", {path: pathString.replace(window.siyuan.config.system.dataDir, "")}, (response) => {+ fetchPost("/api/file/getFile", {path: pathString.replace(window.siyuan.config.system.dataDir.substring(0, window.siyuan.config.system.dataDir.length - 4), "")}, (response) => {element.innerHTML = response.data;})}