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

Vanessa803069d80712
diff --git a/app/src/menus/commonMenuItem.ts b/app/src/menus/commonMenuItem.ts
index f83f9c2591..e7ec9dd46d 100644
--- a/app/src/menus/commonMenuItem.ts
+++ b/app/src/menus/commonMenuItem.ts
@@ -225,7 +225,7 @@ export const openFileAttr = (attrs: IObject, focusName = "bookmark", protyle?: I
</label>
${notifyHTML}
</div>
- <div data-type="NodeAttributeView" class="fn__none custom-attr" data-av-id="${attrs["custom-avs"]}" data-node-id="${attrs.id}"></div>
+ <div data-type="NodeAttributeView" class="fn__none custom-attr"></div>
<div data-type="custom" class="fn__none custom-attr">
${customHTML}
<div class="b3-label">
diff --git a/app/src/protyle/render/av/blockAttr.ts b/app/src/protyle/render/av/blockAttr.ts
index bec5f4c2ef..8138658d80 100644
--- a/app/src/protyle/render/av/blockAttr.ts
+++ b/app/src/protyle/render/av/blockAttr.ts
@@ -76,7 +76,7 @@ export const renderAVAttribute = (element: HTMLElement, id: string, protyle?: IP
avID: string
avName: string
}) => {
- html += `<div class="block__logo custom-attr__avheader">
+ html += `<div data-av-id="${table.avID}" data-node-id="${id}" data-type="NodeAttributeView"><div class="block__logo custom-attr__avheader">
<svg><use xlink:href="#iconDatabase"></use></svg>
<span>${table.avName || window.siyuan.languages.database}</span>
</div>`;
@@ -93,6 +93,7 @@ class="fn__flex-1 fn__flex${["url", "text", "number", "email", "phone", "templat
</div>
</div>`;
});
+ html += "</div>";
});
element.innerHTML = html;
element.addEventListener("click", (event) => {