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

Vanessa8f942aa63156
diff --git a/app/src/config/util/snippets.ts b/app/src/config/util/snippets.ts
index 50b7df0c62..0f038f7362 100644
--- a/app/src/config/util/snippets.ts
+++ b/app/src/config/util/snippets.ts
@@ -108,7 +108,7 @@ export const openSnippets = () => {
enabled: (item.querySelector(".b3-switch") as HTMLInputElement).checked
})
});
- fetchPost("/api/snippet/setSnippets", {snippets}, () => {
+ fetchPost("/api/snippet/setSnippet", {snippets}, () => {
renderSnippet();
dialog.destroy();
});