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

Vanessa36150f3eb07d
diff --git a/app/src/search/util.ts b/app/src/search/util.ts
index edf138570d..6e00526587 100644
--- a/app/src/search/util.ts
+++ b/app/src/search/util.ts
@@ -701,8 +701,8 @@ const addConfigMoreMenu = async (config: ISearchOption, edit: Protyle, element:
<span class="fn__space"></span>
<svg class="b3-menu__icon" style="width: 8px"><use xlink:href="#iconClose"></use></svg>
</div>`,
- bind(element) {
- element.addEventListener("click", (event) => {
+ bind(menuElement) {
+ menuElement.addEventListener("click", (event) => {
if (hasClosestByMatchTag(event.target as HTMLElement, "svg")) {
fetchPost("/api/storage/removeCriterion", {name: element.textContent.trim()});
window.siyuan.menus.menu.remove();