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/17143
Vanessa2f6455171309
diff --git a/app/src/protyle/toolbar/index.ts b/app/src/protyle/toolbar/index.tsindex 0ad5f4fc4c..949a02378c 100644--- a/app/src/protyle/toolbar/index.ts+++ b/app/src/protyle/toolbar/index.ts@@ -1477,10 +1477,10 @@ export class Toolbar {/// #elsesetPosition(this.subElement, 0, 0);/// #endif- } else if (response.data.blocks[0]?.path === previewPath) {+ } else if (response.data.templates[0]?.path === previewPath) {return;} else {- previewPath = response.data.blocks[0]?.path;+ previewPath = response.data.templates[0]?.path;}previewTemplate(previewPath, previewElement, protyle.block.parentID);});@@ -1593,7 +1593,7 @@ export class Toolbar {k: inputElement.value,}, (response) => {let searchHTML = "";- response.data.blocks.forEach((item: { path: string, content: string, name: string }, index: number) => {+ response.data.widgets.forEach((item: { path: string, content: string, name: string }, index: number) => {searchHTML += `<div data-value="${item.path}" data-content="${item.content}" class="b3-list-item${index === 0 ? " b3-list-item--focus" : ""}">${item.name}<span class="b3-list-item__meta">${item.content}</span>