mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-09-11 22:09:44 +00:00
feat: refactor NodeParamHandler component
This commit is contained in:
@@ -110,6 +110,32 @@ const NodeParamHandler: React.FC<NodeParamHandlerProps> = ({ node, data, label,
|
||||
}
|
||||
}
|
||||
|
||||
// TODO: refresh flow node
|
||||
async function refreshFlowNode() {
|
||||
// setLoading(true);
|
||||
const params = {
|
||||
id: '',
|
||||
type_name: '',
|
||||
type_cls: '',
|
||||
flow_type: 'operator' as const,
|
||||
refresh: [
|
||||
{
|
||||
name: '',
|
||||
depends: [
|
||||
{
|
||||
name: '',
|
||||
value: '',
|
||||
has_value: true,
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
};
|
||||
const [_, data] = await apiInterceptors(refreshFlowNodeById(params));
|
||||
// setLoading(false);
|
||||
// setFlowList(data?.items ?? []);
|
||||
}
|
||||
|
||||
function renderComponentByType(type: string, props?: any) {
|
||||
switch (type) {
|
||||
case 'select':
|
||||
|
Reference in New Issue
Block a user