输入框优化

This commit is contained in:
JenniferW 2025-12-12 10:56:01 +08:00
parent a752238c78
commit ace301a637
1 changed files with 8 additions and 0 deletions

View File

@ -783,6 +783,14 @@ const mergeFieldMetadata = (fields = []) => {
// 点击差异字段时添加到输入框 // 点击差异字段时添加到输入框
const addDiffFieldToInput = (field) => { const addDiffFieldToInput = (field) => {
// 检查字段是否已存在
if (fieldLabelExists(field.label)) {
// 如果字段已存在,定位到该字段位置
focusFieldLabel(field.label);
return;
}
// 字段不存在,添加新字段
// 检查输入框末尾是否需要加分号 // 检查输入框末尾是否需要加分号
let separator = ""; let separator = "";
if ( if (