fix: 修改设计器类型不刷新Bpmn设计器

pull/624/head
Lesan 2024-12-20 17:04:53 +08:00
parent bcba84aa6f
commit df8798c688
1 changed files with 16 additions and 4 deletions

View File

@ -690,10 +690,22 @@ const processSave = async () => {
onBeforeMount(() => {
console.log(props, 'propspropspropsprops')
})
onMounted(() => {
initBpmnModeler()
createNewDiagram(props.value)
})
watch(
() => props.value,
(val) => {
val &&
val.length &&
nextTick(() => {
initBpmnModeler()
createNewDiagram(props.value)
})
},
{ immediate: true }
)
// onMounted(() => {
// initBpmnModeler()
// createNewDiagram(props.value)
// })
onBeforeUnmount(() => {
// this.$once('hook:beforeDestroy', () => {
// })