mirror of
https://github.com/langgenius/dify.git
synced 2026-08-03 11:46:37 +08:00
sys variable
This commit is contained in:
parent
705d765a71
commit
dfad42075c
@ -94,6 +94,9 @@ const ComponentPicker = ({
|
|||||||
)
|
)
|
||||||
|
|
||||||
const handleSelectWorkflowVariable = useCallback((variables: string[]) => {
|
const handleSelectWorkflowVariable = useCallback((variables: string[]) => {
|
||||||
|
if (variables[1] === 'sys.query' || variables[1] === 'sys.files')
|
||||||
|
editor.dispatchCommand(INSERT_WORKFLOW_VARIABLE_BLOCK_COMMAND, [variables[1]])
|
||||||
|
else
|
||||||
editor.dispatchCommand(INSERT_WORKFLOW_VARIABLE_BLOCK_COMMAND, variables)
|
editor.dispatchCommand(INSERT_WORKFLOW_VARIABLE_BLOCK_COMMAND, variables)
|
||||||
}, [editor])
|
}, [editor])
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user