diff --git a/web/src/app/home/components/dynamic-form/DynamicFormItemComponent.tsx b/web/src/app/home/components/dynamic-form/DynamicFormItemComponent.tsx
index 0a20df0d..21ab9c0c 100644
--- a/web/src/app/home/components/dynamic-form/DynamicFormItemComponent.tsx
+++ b/web/src/app/home/components/dynamic-form/DynamicFormItemComponent.tsx
@@ -97,6 +97,75 @@ export default function DynamicFormItemComponent({
);
+ case DynamicFormItemType.PROMPT_EDITOR:
+ return (
+
+ {field.value.map((item: { role: string; content: string }, index: number) => (
+
+ {/* 角色选择 */}
+ {index === 0 ? (
+
system
+ ) : (
+
+ )}
+ {/* 内容输入 */}
+
{
+ const newValue = [...field.value];
+ newValue[index] = { ...newValue[index], content: e.target.value };
+ field.onChange(newValue);
+ }}
+ />
+ {/* 删除按钮,第一轮不显示 */}
+ {index !== 0 && (
+
+ )}
+
+ ))}
+
+
+ );
+
default:
return ;
}