feat(ai-web): 将任务模板信息固化到任务对象中

保证每个任务对象都有对应的模板信息可以追溯,不会随着模板被修改而失效
This commit is contained in:
2025-07-05 18:45:24 +08:00
parent f3dfff5075
commit 187c565da4
4 changed files with 41 additions and 31 deletions

View File

@@ -101,7 +101,7 @@ const FlowTask: React.FC = () => {
type: 'service',
schemaApi: {
method: 'get',
url: `${commonInfo.baseAiUrl}/flow_task/template/input_schema/\${templateId}`,
url: `${commonInfo.baseAiUrl}/flow_task/input_schema/\${id}`,
// @ts-ignore
adaptor: (payload, response, api, context) => {
return {
@@ -131,12 +131,6 @@ const FlowTask: React.FC = () => {
],
},
},
{
type: 'action',
label: '重新执行',
level: 'link',
size: 'sm',
},
{
type: 'action',
label: '删除',