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

Vanessaddec6c0820af
diff --git a/app/src/protyle/render/av/action.ts b/app/src/protyle/render/av/action.ts
index 808692668f..ef8d9d9c43 100644
--- a/app/src/protyle/render/av/action.ts
+++ b/app/src/protyle/render/av/action.ts
@@ -356,7 +356,7 @@ export const avContextmenu = (protyle: IProtyle, rowElement: HTMLElement, positi
const menu = new Menu();
const rowElements = blockElement.querySelectorAll(".av__row--select:not(.av__row--header), .av__gallery-item--select");
const keyCellElement = rowElements[0].querySelector('.av__cell[data-dtype="block"]') as HTMLElement;
- const ids = Array.from(rowElements).map(item => item.getAttribute("data-id"));
+ const ids = Array.from(rowElements).map(item => item.querySelector('[data-dtype="block"] .av__celltext').getAttribute("data-id"));
if (rowElements.length === 1 && keyCellElement.getAttribute("data-detached") !== "true") {
/// #if !MOBILE
const blockId = ids[0];