File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
ui/src/workflow/nodes/tool-base-node/component/output Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ const inputFieldList = ref<any[]>([])
5656const outputFieldConfig = ref ({ title: t (' chat.userOutput' , ' 输出参数' ) })
5757
5858function openAddDialog(data ? : any , index ? : any ) {
59- if (index ) {
59+ if (index !== undefined ) {
6060 currentIndex .value = index
6161 }
6262 inputFieldFormDialogRef .value ?.open (data )
@@ -73,6 +73,14 @@ function deleteField(index: any) {
7373const currentIndex = ref <number | null >(null )
7474function refreshFieldList(data : any ) {
7575 if (currentIndex .value !== null ) {
76+ if (
77+ inputFieldList .value
78+ .filter ((item , index ) => index != currentIndex .value )
79+ .some ((field ) => field .field == data .field )
80+ ) {
81+ MsgError (t (' workflow.tip.paramErrorMessage' ) + data .field )
82+ return
83+ }
7684 inputFieldList .value ?.splice (currentIndex .value , 1 , data )
7785 } else {
7886 if (inputFieldList .value .some ((field ) => field .field == data .field )) {
You can’t perform that action at this time.
0 commit comments