Skip to content

Commit 92fe34c

Browse files
committed
【代码评审】BPM:删除表单数据触发器
1 parent bfe4336 commit 92fe34c

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

src/components/SimpleProcessDesignerV2/src/nodes-config/TriggerNodeConfig.vue

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,10 @@ const changeTriggerType = () => {
392392
response: []
393393
}
394394
configForm.value.formSettings = undefined
395-
} else if (configForm.value.type === TriggerTypeEnum.FORM_UPDATE) {
395+
return
396+
}
397+
398+
if (configForm.value.type === TriggerTypeEnum.FORM_UPDATE) {
396399
configForm.value.formSettings =
397400
originalSetting?.type === TriggerTypeEnum.FORM_UPDATE && originalSetting.formSettings
398401
? originalSetting.formSettings
@@ -404,7 +407,10 @@ const changeTriggerType = () => {
404407
}
405408
]
406409
configForm.value.httpRequestSetting = undefined
407-
} else if (configForm.value.type === TriggerTypeEnum.FORM_DELETE) {
410+
return
411+
}
412+
413+
if (configForm.value.type === TriggerTypeEnum.FORM_DELETE) {
408414
console.log('originalSetting?.type', originalSetting?.type)
409415
configForm.value.formSettings =
410416
originalSetting?.type === TriggerTypeEnum.FORM_DELETE && originalSetting.formSettings
@@ -417,6 +423,7 @@ const changeTriggerType = () => {
417423
}
418424
]
419425
configForm.value.httpRequestSetting = undefined
426+
return
420427
}
421428
}
422429

0 commit comments

Comments
 (0)