Skip to content

Commit 624594b

Browse files
committed
BPM:处理打开 bpmn 设计器时,key 和 name 覆盖更新
1 parent eed7bb2 commit 624594b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/components/bpmnProcessDesigner/package/penal/base/ElementBaseInfo.vue

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,14 @@ const updateBaseInfo = (key) => {
139139
}
140140
}
141141
142+
onMounted(() => {
143+
// 针对上传的 bpmn 流程图时,需要延迟 1 毫秒的时间,保证 key 和 name 的更新
144+
setTimeout(() => {
145+
handleKeyUpdate(props.model.key)
146+
handleNameUpdate(props.model.name)
147+
}, 110)
148+
})
149+
142150
watch(
143151
() => props.businessObject,
144152
(val) => {

0 commit comments

Comments
 (0)