File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
src/components/bpmnProcessDesigner/package/penal/task/task-components Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -216,7 +216,7 @@ const resetHttpForm = () => {
216216
217217const resetServiceTaskForm = () => {
218218 const businessObject = bpmnElement .value ?.businessObject
219- const nextForm: Record < string , any > = { ... DEFAULT_TASK_FORM }
219+ const nextForm = { ... DEFAULT_TASK_FORM }
220220
221221 if (businessObject ) {
222222 if (businessObject .class ) {
@@ -233,6 +233,12 @@ const resetServiceTaskForm = () => {
233233 }
234234 if (businessObject .$attrs ?.[flowableTypeKey ] === ' http' ) {
235235 nextForm .executeType = ' http'
236+ } else {
237+ // 兜底:如缺少 flowable:type=http,但扩展里已有 HTTP 的字段,也认为是 HTTP
238+ const { httpFields } = collectHttpExtensionInfo ()
239+ if (httpFields .size > 0 ) {
240+ nextForm .executeType = ' http'
241+ }
236242 }
237243 }
238244
You can’t perform that action at this time.
0 commit comments