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();