From 6c87af46ba8db91bb15fab718de341b371a2d5ac Mon Sep 17 00:00:00 2001 From: leokaka1 Date: Wed, 21 Jan 2026 21:57:06 +0800 Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E5=AE=9A=E4=B9=89=E8=AF=84=E4=BC=B0?= =?UTF-8?q?=E5=99=A8=20=E4=BF=AE=E5=A4=8D=E4=BA=86=20prompt=E7=BD=AE?= =?UTF-8?q?=E7=A9=BA=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/pages/model-dimension-create.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/web/pages/model-dimension-create.html b/web/pages/model-dimension-create.html index 82a0da2..b8de1ae 100644 --- a/web/pages/model-dimension-create.html +++ b/web/pages/model-dimension-create.html @@ -133,7 +133,7 @@ } .markdown-editor { width: 100%; - height: 250px; + height: 350px; font-family: 'Consolas', 'Monaco', 'Menlo', 'Ubuntu Mono', monospace; font-size: 14px; line-height: 1.6; @@ -462,8 +462,8 @@ // 更新默认 Prompt const method = this.dataset.method; const promptEditor = document.getElementById('evalPromptEditor'); - if (promptEditor && EVAL_METHOD_PROMPTS[method]) { - promptEditor.innerText = EVAL_METHOD_PROMPTS[method] || ''; + if (promptEditor && EVAL_METHOD_PROMPTS.hasOwnProperty(method)) { + promptEditor.innerText = EVAL_METHOD_PROMPTS[method]; updateMarkdownHighlight(); syncEditorContent(); } @@ -472,8 +472,8 @@ // 初始化默认 Prompt const promptEditor = document.getElementById('evalPromptEditor'); - if (promptEditor && EVAL_METHOD_PROMPTS[firstMethod]) { - promptEditor.innerText = EVAL_METHOD_PROMPTS[firstMethod] || ''; + if (promptEditor && EVAL_METHOD_PROMPTS.hasOwnProperty(firstMethod)) { + promptEditor.innerText = EVAL_METHOD_PROMPTS[firstMethod]; updateMarkdownHighlight(); syncEditorContent(); } @@ -509,7 +509,7 @@ const promptEditor = document.getElementById('evalPromptEditor'); const selectedMethod = document.querySelector('.radio-option.selected input[name="eval_method"]'); const method = selectedMethod ? selectedMethod.value : 'standard'; - if (promptEditor && EVAL_METHOD_PROMPTS[method]) { + if (promptEditor && EVAL_METHOD_PROMPTS.hasOwnProperty(method)) { promptEditor.innerText = EVAL_METHOD_PROMPTS[method]; updateMarkdownHighlight(); syncEditorContent();