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

Vanessad355423cab60
diff --git a/app/src/dialog/index.ts b/app/src/dialog/index.ts
index 59ca05f1c7..98d604f4d7 100644
--- a/app/src/dialog/index.ts
+++ b/app/src/dialog/index.ts
@@ -59,6 +59,8 @@ export class Dialog {
public destroy() {
this.element.remove();
+ // https://github.com/siyuan-note/siyuan/issues/6783
+ window.siyuan.menus.menu.remove();
if (this.destroyCallback) {
this.destroyCallback();
}
diff --git a/app/src/search/spread.ts b/app/src/search/spread.ts
index 6aaeaf36ee..8bb3fe8815 100644
--- a/app/src/search/spread.ts
+++ b/app/src/search/spread.ts
@@ -91,7 +91,6 @@ 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);