diff --git a/src/components/bpmnProcessDesigner/package/penal/base/ElementBaseInfo.vue b/src/components/bpmnProcessDesigner/package/penal/base/ElementBaseInfo.vue index 5e77c948..5ad2ff4b 100644 --- a/src/components/bpmnProcessDesigner/package/penal/base/ElementBaseInfo.vue +++ b/src/components/bpmnProcessDesigner/package/penal/base/ElementBaseInfo.vue @@ -139,6 +139,14 @@ const updateBaseInfo = (key) => { } } +onMounted(() => { + // 针对上传的 bpmn 流程图时,需要延迟 1 毫秒的时间,保证 key 和 name 的更新 + setTimeout(() => { + handleKeyUpdate(props.model.key) + handleNameUpdate(props.model.name) + }, 110) +}) + watch( () => props.businessObject, (val) => {