mirror of
https://gitee.com/hhyykk/ipms-sjy.git
synced 2025-07-15 11:35:06 +08:00
bug
This commit is contained in:
@ -25,13 +25,16 @@ const props = defineProps({
|
||||
const documentation = ref('')
|
||||
const bpmnElement = ref()
|
||||
const updateDocumentation = () => {
|
||||
;(bpmnElement.value && bpmnElement.value.id === props.id) ||
|
||||
(bpmnElement.value = window.bpmnInstances.elementRegistry.get(props.id))
|
||||
const documentation = window.bpmnInstances.bpmnFactory.create('bpmn:Documentation', {
|
||||
if (bpmnElement.value && bpmnElement.value.id === props.id) {
|
||||
bpmnElement.value = window.bpmnInstances.elementRegistry.get(props.id)
|
||||
}
|
||||
// (bpmnElement.value && bpmnElement.value.id === props.id) ||
|
||||
// (bpmnElement.value = window.bpmnInstances.elementRegistry.get(props.id))
|
||||
const documentations = window.bpmnInstances.bpmnFactory.create('bpmn:Documentation', {
|
||||
text: documentation.value
|
||||
})
|
||||
window.bpmnInstances.modeling.updateProperties(bpmnElement.value, {
|
||||
documentation: [documentation]
|
||||
documentation: [documentations]
|
||||
})
|
||||
}
|
||||
onBeforeUnmount(() => {
|
||||
|
Reference in New Issue
Block a user