Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: tag rename

Vanessac62e178652de
diff --git a/app/src/util/noRelyPCFunction.ts b/app/src/util/noRelyPCFunction.ts
index 0676e391d0..e2a178825f 100644
--- a/app/src/util/noRelyPCFunction.ts
+++ b/app/src/util/noRelyPCFunction.ts
@@ -18,7 +18,7 @@ export const renameTag = (labelName: string) => {
const dialog = new Dialog({
title: window.siyuan.languages.rename,
content: `<div class="b3-dialog__content">
- <input class="b3-text-field fn__block" value="${labelName}">
+ <input class="b3-text-field fn__block">
<div class="b3-list fn__flex-1 b3-list--background fn__none protyle-hint" style=" position: absolute;
width: calc(100% - 48px);">
<img style="margin: 0 auto;display: block;width: 64px;height: 64px" src="/stage/loading-pure.svg">
@@ -47,6 +47,7 @@ export const renameTag = (labelName: string) => {
});
});
const inputElement = dialog.element.querySelector("input");
+ inputElement.value = labelName;
inputElement.focus();
inputElement.select();
const listElement = dialog.element.querySelector(".b3-list--background");