Skip to content

Commit c003954

Browse files
committed
chore: update tool_params handling in index.vue
--bug=1062339 --user=刘瑞斌 【MCP】MCP节点,从“引用变量” 切换到 “自定义” 没有清空 “引用变量” 的值 https://www.tapd.cn/62980211/s/1782327
1 parent 80629b9 commit c003954

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ui/src/workflow/nodes/mcp-node/index.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@
138138
v-model="item.source"
139139
size="small"
140140
style="width: 85px"
141-
@change="form_data.tool_params[form_data.params_nested] = {}"
141+
@change="form_data.tool_params[form_data.params_nested] = {}; form_data.tool_params[form_data.params_nested][item.label.label]"
142142
>
143143
<el-option
144144
:label="$t('views.applicationWorkflow.nodes.replyNode.replyContent.reference')"
@@ -207,6 +207,7 @@
207207
v-model="item.source"
208208
size="small"
209209
style="width: 85px"
210+
@change="form_data.tool_params[item.label.label] = ''"
210211
>
211212
<el-option
212213
:label="$t('views.applicationWorkflow.nodes.replyNode.replyContent.reference')"

0 commit comments

Comments
 (0)