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

Vanessa4362df77ba11
diff --git a/app/src/dialog/index.ts b/app/src/dialog/index.ts
index 580b350e56..59ca05f1c7 100644
--- a/app/src/dialog/index.ts
+++ b/app/src/dialog/index.ts
@@ -53,6 +53,8 @@ export class Dialog {
this.element.classList.add("b3-dialog--open");
});
}
+ // https://github.com/siyuan-note/siyuan/issues/6783
+ window.siyuan.menus.menu.remove();
}
public destroy() {
diff --git a/app/src/search/spread.ts b/app/src/search/spread.ts
index 8bb3fe8815..6aaeaf36ee 100644
--- a/app/src/search/spread.ts
+++ b/app/src/search/spread.ts
@@ -91,6 +91,7 @@ export const openSearch = async (hotkey: string, key?: string, notebookId?: stri
if (edit) {
edit.destroy();
}
+ window.siyuan.menus.menu.remove();
}
});
dialog.element.setAttribute("data-key", hotkey);