完善字段与数据库对应
This commit is contained in:
@@ -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: ''
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user