fix(web): workflow bug

This commit is contained in:
zhaoying
2025-12-22 20:01:10 +08:00
parent 9f7bafe7fb
commit cd325fe198
4 changed files with 18 additions and 8 deletions

View File

@@ -54,7 +54,7 @@ const Chat = forwardRef<ChatRef, { appId: string; graphRef: GraphRef }>(({ appId
setChatList([])
}
const handleEditVariables = () => {
variableConfigModalRef.current?.handleOpen()
variableConfigModalRef.current?.handleOpen(variables)
}
const handleSave = (values: StartVariableItem[]) => {
setVariables([...values])
@@ -91,7 +91,7 @@ const Chat = forwardRef<ChatRef, { appId: string; graphRef: GraphRef }>(({ appId
}])
setChatList(prev => [...prev, {
role: 'assistant',
content: message,
content: '',
created_at: Date.now(),
}])