diff --git a/src/views/flow/config.js b/src/views/flow/config.js index e124e2b..b719201 100644 --- a/src/views/flow/config.js +++ b/src/views/flow/config.js @@ -292,6 +292,7 @@ export const collapseList = [ type: "http", desc: "HTTP请求", action: 'HTTP', + nodeType: 'HTTP', nodeParams: [ { name: "config", type: "input", input: "", children: [ { name: "url", type: "input", input: "", disabled: true, required: true }, @@ -346,7 +347,6 @@ function handler(params) { type: "currentLoop", desc: "获取当前循环对象", action: 'GET_CURRENT_OBJECT', - nodeType: 'getCurrentObject', nodeParams: [ { name: "array", type: "input", input: "" } ], diff --git a/src/views/flow/index.vue b/src/views/flow/index.vue index afc8345..995d904 100644 --- a/src/views/flow/index.vue +++ b/src/views/flow/index.vue @@ -669,6 +669,8 @@ const group = () => { } }); if (children.length === 0) { + lf.clearSelectElements(); + lf.extension.selectionSelect.closeSelectionSelect(); return; } let width = maxX - minX + PADDING; diff --git a/src/views/flow/nodes/function/sdAgent.vue b/src/views/flow/nodes/function/sdAgent.vue index 3a031ce..167dc88 100644 --- a/src/views/flow/nodes/function/sdAgent.vue +++ b/src/views/flow/nodes/function/sdAgent.vue @@ -24,6 +24,7 @@ :nodeId="props.model.id" :nodeProperties="props.properties" :nodeName="props.properties.name" + :nodeType="props.properties.nodeType || 'NONE'" :nodeDesc="props.properties.desc" :zoom-state="nodeZoom" @zoom="zoom"