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

Vanessa27e7dc0c581c
diff --git a/app/src/menus/protyle.ts b/app/src/menus/protyle.ts
index d9fc44cbb2..0429391574 100644
--- a/app/src/menus/protyle.ts
+++ b/app/src/menus/protyle.ts
@@ -1868,7 +1868,9 @@ export const tagMenu = (protyle: IProtyle, tagElement: HTMLElement) => {
label: window.siyuan.languages.rename,
icon: "iconEdit",
click() {
- renameTag(tagElement.textContent.replace(Constants.ZWSP, ""));
+ const tagName = tagElement.textContent.replace(Constants.ZWSP, "");
+ window.siyuan.menus.menu.remove();
+ renameTag(tagName);
}
}).element);
window.siyuan.menus.menu.append(new MenuItem({id: "separator_2", type: "separator"}).element);