fix(web): add tool_id required check list

This commit is contained in:
zhaoying
2026-04-20 14:47:16 +08:00
parent 4a39fd5f46
commit 559b4bef6b
4 changed files with 10 additions and 2 deletions

View File

@@ -147,6 +147,11 @@ const ToolConfig: FC<{ options: Suggestion[]; }> = ({
};
const handleChange: CascaderProps<Option>['onChange'] = (value, selectedOptions) => {
if (!value) {
setParameters([])
form.resetFields()
return
}
const targetOption = selectedOptions[selectedOptions.length - 1];
const curParameters = [...(targetOption.parameters ?? [])]
setParameters([...curParameters])