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

Vanessaa34538b9b5d8
diff --git a/app/src/protyle/render/av/action.ts b/app/src/protyle/render/av/action.ts
index 9b5ab05deb..c6931adda3 100644
--- a/app/src/protyle/render/av/action.ts
+++ b/app/src/protyle/render/av/action.ts
@@ -278,11 +278,14 @@ export const avContextmenu = (protyle: IProtyle, rowElement: HTMLElement, positi
click() {
openSearchAV(blockElement.getAttribute("data-av-id"), rowElements[0] as HTMLElement, (listItemElement) => {
const srcs: { id: string, content: string }[] = [];
+ const sourceIds: string[] = [];
rowElements.forEach(item => {
+ const rowId = item.getAttribute("data-id")
srcs.push({
content: item.querySelector(".av__cell[data-block-id] .av__celltext").textContent.trim(),
- id: item.getAttribute("data-id")
+ id: rowId
});
+ sourceIds.push(rowId);
})
const avID = listItemElement.dataset.avId;
transaction(protyle, [{