mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-26 00:46:52 +08:00
Feat: When saving the canvas, other dls parameters passed from the backend are spliced into the dsl parameters #3355 (#3558)
### What problem does this PR solve? Feat: When saving the canvas, other dls parameters passed from the backend are spliced into the dsl parameters #3355 #3556 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
@ -119,6 +119,7 @@ const buildOperatorParams = (operatorName: string) =>
|
||||
export const buildDslComponentsByGraph = (
|
||||
nodes: Node<NodeData>[],
|
||||
edges: Edge[],
|
||||
oldDslComponents: DSLComponents,
|
||||
): DSLComponents => {
|
||||
const components: DSLComponents = {};
|
||||
|
||||
@ -129,6 +130,7 @@ export const buildDslComponentsByGraph = (
|
||||
const operatorName = x.data.label;
|
||||
components[id] = {
|
||||
obj: {
|
||||
...(oldDslComponents[id]?.obj ?? {}),
|
||||
component_name: operatorName,
|
||||
params:
|
||||
buildOperatorParams(operatorName)(
|
||||
|
||||
Reference in New Issue
Block a user