完善字段与数据库对应

This commit is contained in:
2025-04-03 14:25:24 +08:00
parent a7626d2f90
commit de5ff38c60
2 changed files with 428 additions and 15 deletions
@@ -442,8 +442,9 @@ export function ExtractionSettings({ onChange }: ExtractionSettingsProps) {
onChange({
extractionMethod: currentTab,
promptSettings: {
...promptType,
[type]: value
type: value,
template: selectedTemplate[type],
content: promptContent[type]
}
});
}
@@ -503,6 +504,17 @@ export function ExtractionSettings({ onChange }: ExtractionSettingsProps) {
...promptContent,
[type]: ''
});
if (onChange) {
onChange({
extractionMethod: currentTab,
promptSettings: {
type: promptType[type],
template: '',
content: ''
}
});
}
}
};